Skip to content

Testing filter and sort state persistance #15

Draft
kc-leung wants to merge 5 commits intomainfrom
kc-filter-sort
Draft

Testing filter and sort state persistance #15
kc-leung wants to merge 5 commits intomainfrom
kc-filter-sort

Conversation

@kc-leung
Copy link
Contributor

@kc-leung kc-leung commented Mar 22, 2021

  • Created ref to track prevState of data changes
  • Created re-apply filter once data gets updated

Above solutions doesn't work because of component re-rendering 3 times after data is changed

  • Force updating filter everytime it re-render

Forcing filter to update cause unnecessary render so it is not good but it works

Prettier formatted json file :(

@kc-leung kc-leung requested a review from woozyking March 22, 2021 16:42
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.

1 participant