Skip to content

Fix Race Condition in SearchBar#458

Open
prestoncraw wants to merge 2 commits intomasterfrom
SearchBar_Fixes
Open

Fix Race Condition in SearchBar#458
prestoncraw wants to merge 2 commits intomasterfrom
SearchBar_Fixes

Conversation

@prestoncraw
Copy link
Copy Markdown
Contributor

  • Remove effects that were solely for syncing filters with localstorage in favor of writing them inline when modifying filters.
  • Stabilize debounced function
  • Remove all effects besides effect to initialize filters from localstorage.

Comment on lines +173 to +175
applyQuickSearch(storedSearch, storedFilters, props.SetFilter, memoizedDefaultColumn, useQuickSearch);
applyQuickSearch.flush();
}, [props.StorageID, memoizedDefaultColumn, useQuickSearch]);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

wouldn't props.SetFilter need to be a dependency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah good catch

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