kiliman / remix-typedjson

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

Export deserialize function to consume loader data without `useLoaderData`. #39

Closed izznatsir closed 7 months ago

izznatsir commented 7 months ago

I have some resource routes that I fetch using TanStack Query. Therefore, I need to deserialize the JSON manually. Is it possible to export the deserialize function?

izznatsir commented 7 months ago

Sorry, my bad! it's actually exported.