Replies: 1 comment
-
|
Generally the Remix team doesn’t like to add to the API things you can do in userland. I would extend with custom hooks or wrappers. If it seems useful and covers a broad base of usecases then it may end up in the core. Remix is moving to support multiple UI frameworks so the more surface area an API has the harder it may be to migrate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I saw this tweet by @kiliman and thought it was a very interesting approach, but I didn't like the use of effects everywhere to handle when a particular fetcher event occurred e.g.
I think allowing users to pass event handlers to the fetchers might be a useful feature, and I wanted to start a discussion. I'd imagine an API like:
I was able to put together an example custom hook that achieves what I'm proposing (however, it still uses effects under the hood):
Would this be something the Remix team might consider adding or will
useEffectremain the recommended approach?Beta Was this translation helpful? Give feedback.
All reactions