Benjamim Sonntag
Benjamim Sonntag
Well, I'm using [redux-promise-middleware](https://github.com/pburtchaell/redux-promise-middleware) for API requests. I get a list of entities on the `fulfilled` action that I want to add to a `map`. I still want to dispatch...
@adrienjt `changeMany...` isn't as easy as I first thought, because `itemModifier` takes the `action` as it's second argument. I'll have to add another option for modifying items from a collection....
I made it like this initially so that users wouldn't need to wrap the promise in a `useMemo` (or the promise creator in a `useCallback`), but I agree. The `inputs`...
No, but you'd have to wrap the function in `useCallback`: ```js usePromise(useCallback(async () => something, [deps])); ``` I do think this is better, since it would work with tools like...
Reproduction here: https://runkit.com/bsonntag/5c3362f019d6b0001713a107 Adding `.default` to the `require()` call fixes it. Like this: ```js var accept = require('attr-accept').default; accept({ name: 'my file.png', type: 'image/png' }, 'image/*') ```
Any updates on this?