Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

use fns in useState #119

Merged
merged 1 commit into from
Oct 18, 2023
Merged

use fns in useState #119

merged 1 commit into from
Oct 18, 2023

Conversation

geoknee
Copy link
Contributor

@geoknee geoknee commented Oct 18, 2023

Closes #116

https://react.dev/reference/react/useState#avoiding-recreating-the-initial-state
Apparently we should be using a pure constructor function 🤷

@geoknee geoknee requested a review from NiloCK October 18, 2023 12:29
Copy link
Contributor

@NiloCK NiloCK left a comment

Choose a reason for hiding this comment

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

Yay

@geoknee geoknee merged commit 2be182b into main Oct 18, 2023
1 check passed
@geoknee geoknee deleted the useState-fix branch October 18, 2023 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multiple OwnerClients are being constructed
2 participants