@bonesyblue.bsky.socialJonathan Bones @bonesyblue.bsky.social
2026-04-29 10:33 UTC
JSON.stringify() turns your Date into an ISO string. JSON.parse() gives you back a string - not a Date! TypeScript won't warn you. Your app crashes at runtime. π I hit this in a persisted Zustand store recently. Read more: π www.bitglow.de/blog/date-se... #TypeScript #Zustand #ReactNative
Link: Serializing Date Objects in Persisted Data Stores (www.bitglow.de/blog/date-serialization-in-persisted-data-stβ¦)
7 likes, 1 reposts, 0 replies
3 Next post4 More from @bonesyblue.bsky.socialBackBluesky home