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

Adding support for `key` in `useTypedFetcher` #35

Closed DerJacques closed 9 months ago

DerJacques commented 9 months ago

Remix recently added the ability to provide a key to fetchers: https://remix.run/docs/en/main/hooks/use-fetcher#key

It would be wonderful if useTypedFetcher would expose the same argument.

This library is great, so thank you for all your work on this!

kiliman commented 9 months ago

Published in v0.4.0

DerJacques commented 9 months ago

Fantastic! Thank you.

kiliman commented 9 months ago

Let me know if you have any issues. I needed to make sure it works for both Remix v1 (which doesn't support key) and Remix v2.2+ (which added it).

DerJacques commented 9 months ago

It works perfectly! Thanks a lot for the super quick response.