mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-25 00:43:46 +00:00
Enable react-hooks/exhaustive-deps linting rule
This commit is contained in:
@@ -10,7 +10,7 @@ export function withoutSelectedServer<T = {}>(WrappedComponent: FC<WithoutSelect
|
||||
const { resetSelectedServer } = props;
|
||||
useEffect(() => {
|
||||
resetSelectedServer();
|
||||
}, []);
|
||||
}, [resetSelectedServer]);
|
||||
|
||||
return <WrappedComponent {...props} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user