-
Notifications
You must be signed in to change notification settings - Fork 596
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
move ._handler off state #637
Conversation
Looks good! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't even know it was there.
this makes sense to me but I wonder what @marcbachmann thinks because there might've been a reason for doing it this way in #613 |
So far the |
@marcbachmann just to have some context: what issue were you running into? Agree we should have some tests for this; want to make sure we test for the right things. |
I was referencing to the statement in your issue description. (State should be serializable). |
I've been experimenting with persisting state to a service worker (for offline support and shared state between tabs) but if you try to post a message with anything but plain serializable values it'll throw. But yeah, we should probably document the desire to keep state serializable. |
yeah, we should probably write a test for that too. I'll do that in a separate patch. |
|
State should be serializable; by moving ._handler off
state
we keep state a bit cleaner. Thanks!