Skip to content

Fix map re-rendering every time an option is selected#27

Merged
whubsch merged 1 commit into
whubsch:mainfrom
maxwellward:fix/rerender-on-every-state-change
May 15, 2026
Merged

Fix map re-rendering every time an option is selected#27
whubsch merged 1 commit into
whubsch:mainfrom
maxwellward:fix/rerender-on-every-state-change

Conversation

@maxwellward

Copy link
Copy Markdown
Contributor

This fix uses useMemo instead of useCallback to fix the map rerendering due to map() returning a brand new array without caching it

@whubsch

whubsch commented May 15, 2026

Copy link
Copy Markdown
Owner

Thank you!

@whubsch whubsch merged commit cbdbd1b into whubsch:main May 15, 2026
3 checks passed
@maxwellward maxwellward deleted the fix/rerender-on-every-state-change branch May 16, 2026 06:31
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.

2 participants