chore: Enable ESLint rules of hooks + fix new lint errors (#5714)

This commit is contained in:
Sébastien Lorber 2021-10-20 16:09:52 +02:00 committed by GitHub
parent 3db4fcaec7
commit 098f210890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 110 additions and 48 deletions

View file

@ -120,7 +120,7 @@ function useContextValue() {
return {
savePreferredVersion,
};
}, [setState]);
}, [versionPersistence]);
return [state, api] as const;
}