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
I keep getting the following warning when trying to export data via the export procedures used in exportUtils.tsx
Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.
This seems to be caused by the renderToStaticMarkup in the export functions mixed with useLayoutEffect calls used in DataGrid.tsx. Is there a better way to get the data to export without getting this warning constantly, or should DataGrid.tsx be updated to use an isomorphic version similar to what's discussed here?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I keep getting the following warning when trying to export data via the export procedures used in exportUtils.tsx
This seems to be caused by the renderToStaticMarkup in the export functions mixed with useLayoutEffect calls used in DataGrid.tsx. Is there a better way to get the data to export without getting this warning constantly, or should DataGrid.tsx be updated to use an isomorphic version similar to what's discussed here?
Beta Was this translation helpful? Give feedback.
All reactions