mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 20:21:19 +02:00
fix: favorites not refreshing after navigating back from search (#138)
Co-authored-by: Abdullah Atta <thecodrr@protonmail.com>
This commit is contained in:
@@ -8,15 +8,7 @@ import { DEFAULT_CONTEXT } from "../common";
|
||||
const Notes = props => {
|
||||
const newSession = useStore(store => store.newSession);
|
||||
const selectedNotes = useNotesStore(store => store.selectedNotes);
|
||||
const clearSelectedContext = useNotesStore(
|
||||
store => store.clearSelectedContext
|
||||
);
|
||||
const selectedContext = useNotesStore(store => store.selectedContext);
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
clearSelectedContext();
|
||||
};
|
||||
}, [clearSelectedContext]);
|
||||
return (
|
||||
<ListContainer
|
||||
type="notes"
|
||||
|
||||
Reference in New Issue
Block a user