-
Notifications
You must be signed in to change notification settings - Fork 9
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
Empty map can't be streamed? #26
Comments
In
Whereas a non-empty map:
|
caprica
added a commit
to caprica/turbo-stream
that referenced
this issue
May 8, 2024
jacob-ebey
pushed a commit
that referenced
this issue
May 30, 2024
Fixed by #27 |
Closing for now. Please re-open if the issue persists. Thanks for investigating and the fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Remix.run which I understand uses v2.0.0 of this library for sending responses between server and client. I am not sure if this an issue for Remix, or if it belongs here.
I have an object that contains two maps, either of them could be empty.
When I log the object prior to serialisation it looks like this:
Remix reports this and the page fails to render:
If I return null instead of empty map:
This has no error and the page renders correctly, although I would rather deal with an empty map instead of a null.
So the question is should empty maps be serialisable?
The text was updated successfully, but these errors were encountered: