Ben Durrant
Ben Durrant
> About the `original()` from immer, is that function exposed to the users? Does the user need to dabble with peer dependencies or something? If you have a short demo...
instead of ``` state.byId[id].metrics = state.byId[id].metrics?.map(metric => metric.id !== metricId ? metric : { ...metric, ...newMetric } ) ``` can you try doing ``` const metric = state.byId[id].metrics?.find((metric) => metric.id...
also experiencing this issue - so far I've had to just generate a random key for the marker so it always rerenders, but this is obviously terrible for performance 😅
this seems to have been superceded by https://github.com/reduxjs/redux/pull/4460 - (https://redux.js.org/style-guide/#use-rtk-query-for-data-fetching) okay to close?
Out of curiosity, what about this setup is unique to React Native? generally this guide looks very similar to a SPA setup. it's also worth noting that we now link...
thanks!
could you give an example of a piece of code which now errors?
any chance you could put together a reproduction in typescript playground, codesandbox or a repo? none of our tests broke 😕
could you show how you're using it?
 seems to be working in a playground - what typescript version are you using?