Skip to content
Snippets Groups Projects
Commit 9c0adaf5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

callback should not depende on sortColumn, sortOrder and selectedId - it will...

callback should not depende on sortColumn, sortOrder and selectedId - it will be called in different component
parent e41ddab2
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!195Resolve "[MIN-288] Requests for publications loading are doubled"
...@@ -42,7 +42,7 @@ export const PublicationsSearch = (): JSX.Element => { ...@@ -42,7 +42,7 @@ export const PublicationsSearch = (): JSX.Element => {
modelId: selectedId, modelId: selectedId,
}), }),
); );
}, [debouncedValue, dispatch, selectedId, sortColumn, sortOrder]); }, [debouncedValue, dispatch]);
useEffect(() => { useEffect(() => {
dispatch(setPublicationSearchValue(debouncedValue)); dispatch(setPublicationSearchValue(debouncedValue));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment