Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
it might be better to let this rest for a week or so
Immer v5 was released today, with support for Map and Set.
While I believe it is usually adviced against using those in Redux, I also know that people do so anyways - those might benefit from this update.
On the other hand, this will bump the size of the immer dependency from gzipped 4.5kb to 6.3kb. ( https://bundlephobia.com/[email protected] ).
There is immerjs/immer#449 which aims to reduce bundle size again, and this is very new, so it might be a good idea to monitor immerjs/immer#354 if any other issues arise and decide on merging this in a week or two, so this PR is more of a reminder to check back later ;)