Ben Durrant

Results 58 comments of 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...

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 😕

![image](https://github.com/reduxjs/redux-toolkit/assets/18308300/84d00c3a-4924-4525-8138-5af198dff430) seems to be working in a playground - what typescript version are you using?