Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/context/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
const newSettings = { ...settings, ...defaultFilters };
setSettings(newSettings);
saveState({ auth, settings: newSettings });
}, [auth]);
}, [auth, settings]);
Copy link
Member

Choose a reason for hiding this comment

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

Be careful with this 👀 All linters are known for sometimes inducing people in error with this, for example in useEffects

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. So for this instance do you think this should be reverted?


const resetSettings = useCallback(() => {
setSettings(defaultSettings);
Expand Down