-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using localStorage
or sessionStorage
to store filter values, I'm encountering an error specifically with the filterVariant
set to "date" or "date-range":
#1136
Comments
Vite-React.1.mp4 |
I'm also facing the same issue the same npm package .i.e. datepicker https://www.material-react-table.com/docs/guides/state-management |
|
|
This would not have anything to do with MRT, but instead how you are parsing and storing dates. Dates are objects that cannot be serialized unless to do it properly in a string format yourself. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
material-react-table version
v2
react & react-dom versions
18
Describe the bug and the steps to reproduce it
When using
localStorage
orsessionStorage
to store filter values, I'm encountering an error specifically with thefilterVariant
set to "date" or "date-range":The error message is:
Additionally, the error occurs in the
<ForwardRef(DesktopDatePicker2)>
component:Consider adding an error boundary to your component tree to customize error handling behavior. Visit React Error Boundaries to learn more about error boundaries.
Any insights or solutions to this issue would be greatly appreciated.
Minimal, Reproducible Example - (Optional, but Recommended)
localstorage-table.zip
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
The text was updated successfully, but these errors were encountered: