This package is a replacement for superjson to use in your Remix app. It handles a subset of types that `superjson` supports, but is faster and smaller.
MIT License
435
stars
19
forks
source link
Meta keys can be incorrect when there is an empty string property #33
Recently tracked down this weird edge case where there is a nested object with a key that is an empty string and the value is [{}] resulting in meta keys being incorrect after the serialization encounters it. I've added this test case that recreates it.
Recently tracked down this weird edge case where there is a nested object with a key that is an empty string and the value is
[{}]
resulting in meta keys being incorrect after the serialization encounters it. I've added this test case that recreates it.The offending data here:
The expected value is
But the actual is:
My guess is that there is somewhere doing a conditional on the
""
value which will return false.