You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use Adobe's React-Spectrum I get this error: ERROR in ./node_modules/@react-aria/virtualizer/dist/module.js 154:4-13 "export 'flushSync' was not found in 'react-dom'
React has two different versions listed in their codebase. Only docs I could find is this comment:
You also have an option to flush the entire tree if you know what you’re doing. The API is called ReactDOM.flushSync(fn). Note that it actually forces complete re-rendering for updates that happen inside of the call, so you should use it very sparingly. This way it doesn’t break the guarantee of internal consistency between props, state, and refs.
I'm wondering if a noop would be OK for now rather than having to implant the flushing?
The text was updated successfully, but these errors were encountered:
A no-op or stubbing it out via useEffect is worth a try. If we're lucky that could be all that's needed. In our case we'll have already flushed the tree to the DOM by then, so it should work.
When trying to use Adobe's React-Spectrum I get this error:
ERROR in ./node_modules/@react-aria/virtualizer/dist/module.js 154:4-13 "export 'flushSync' was not found in 'react-dom'
It is used only in one place.
React has two different versions listed in their codebase. Only docs I could find is this comment:
I'm wondering if a noop would be OK for now rather than having to implant the flushing?
The text was updated successfully, but these errors were encountered: