demo
demo copied to clipboard
No rerendering after setData for collection
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});