-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to take in middleware #18
base: master
Are you sure you want to change the base?
Conversation
I’d love to help on this! |
I'm waiting for @aweary to review it! I feel this is good step to help testing and have some dev tools for this library. |
I'm a little busy at the moment, but I'll try to review soon. At a high-level I think the middleware implementation needs to be more simple. The If we just pass Are there any other good use cases for passing |
Yeah, this was my first approach.
An error boundary at the top level of the app could do the same job. (ie sending the event to sentry or other service)
Not that I can think of. I mainly want some middleware to get some kind of dev tooling happen. You would accept a simpler middleware api then? |
IMO Immer integration should be optional and added through middleware. react-copy-write is really thin and that's great. Immer is very opinionated and that's great, but also a good case for making it optional. |
#17
It looks as follows when being consumed.
What do you think? Need some TLC for typing and tests.