Skip to content

Conversation

Jlexyc
Copy link

@Jlexyc Jlexyc commented Sep 15, 2023

Due to using useState hook for the whole state there is an edge case when state flag isInitialized was reset with old value false just after it was set to true due to bad state managements.
Also added useCallback to optimise a bit code. (Optimised where it doesn't require big updates)

Optimised component with useCallback.
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