« * K @bonesyblue.bsky.social

Jonathan 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
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup