remix-easy-mode

Simple, typesafe toolkit for developing highly interactive Remix apps. Inspired by TRPC.

MIT License

Downloads
33
Stars
77
remix-easy-mode - v0.2.2 Latest Release

Published by sjc5 12 months ago

Provides a unique (but stable per useAction hook call) key to pass into the underlying useFetcher, which fixes a bug where multiple useAction hooks mounted simultaneously could be unintentionally linked.

The key is required because post Remix v2.2.0, the fetchers used internally by useAction do not behave the same as they did in Remix <=2.1.0 without passing in the key. If there is a more canonical way to achieve this, let me know, but I believe this now fully restores the prior remix-easy-mode behavior on all Remix versions.

If anyone runs into issues, please let me know by filing an issue. Just this once, feel free to at-tag me to make sure I see it quickly.

remix-easy-mode - v0.2.1

Published by sjc5 12 months ago

  • Bumps dependencies
  • Loosens peer dependency requirements looking forward, but requires at least Remix v2 now
  • Adds a key (the path passed into useAction) to the useFetcher call, to work with Remix v2.2.0, which broke fetcher state without that change. I'm not sure if that change even makes sense as I have not fully dug into Remix v2.2.0, but it restored the prior desired behavior.
Package Rankings
Top 21.9% on Npmjs.org