Skip to content

Prevent useReducer from mutating the previous outputted result#2550

Merged
marvinhagemeister merged 2 commits intomasterfrom
no-state-mutation
May 24, 2020
Merged

Prevent useReducer from mutating the previous outputted result#2550
marvinhagemeister merged 2 commits intomasterfrom
no-state-mutation

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

Fixes: #2549

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 24, 2020

Size Change: +14 B (0%)

Total Size: 39.6 kB

Filename Size Change
hooks/dist/hooks.js 1.1 kB +5 B (0%)
hooks/dist/hooks.module.js 1.11 kB +4 B (0%)
hooks/dist/hooks.umd.js 1.17 kB +5 B (0%)
ℹ️ View Unchanged
Filename Size Change
compat/dist/compat.js 3.17 kB 0 B
compat/dist/compat.module.js 3.2 kB 0 B
compat/dist/compat.umd.js 3.22 kB 0 B
debug/dist/debug.js 2.99 kB 0 B
debug/dist/debug.module.js 2.98 kB 0 B
debug/dist/debug.umd.js 3.08 kB 0 B
devtools/dist/devtools.js 184 B 0 B
devtools/dist/devtools.module.js 195 B 0 B
devtools/dist/devtools.umd.js 260 B 0 B
dist/preact.js 3.86 kB 0 B
dist/preact.min.js 3.86 kB 0 B
dist/preact.module.js 3.88 kB 0 B
dist/preact.umd.js 3.92 kB 0 B
test-utils/dist/testUtils.js 437 B 0 B
test-utils/dist/testUtils.module.js 439 B 0 B
test-utils/dist/testUtils.umd.js 515 B 0 B

compressed-size-action

Copy link
Copy Markdown
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing! Very impressed how quickly you were able to debug this and find a solution 🙌

@marvinhagemeister marvinhagemeister merged commit 0e89a7e into master May 24, 2020
@marvinhagemeister marvinhagemeister deleted the no-state-mutation branch May 24, 2020 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useContext not triggering re-render for nested child components

2 participants