demo icon indicating copy to clipboard operation
demo copied to clipboard

No rerendering after setData for collection

Open fayouz opened this issue 3 years ago • 0 comments

https://github.com/api-platform/demo/blob/e48e360ef34cead4a6ed1f9f3d3cf7b6d8fd8faf/pwa/utils/mercure.ts#L37

This should be a new reference of object, otherwise next won't rerender the FunctionComponent.

setData({...data});

fayouz avatar Dec 25 '21 20:12 fayouz