diff --git a/.eslintrc b/.eslintrc index 17c00b1a9..57df4c338 100644 --- a/.eslintrc +++ b/.eslintrc @@ -35,6 +35,7 @@ "no-shadow": 0, "@typescript-eslint/no-shadow": 2, "@typescript-eslint/explicit-function-return-type": 0, + "@typescript-eslint/no-unused-vars": [0, {"argsIgnorePattern": "^_"}], "@typescript-eslint/no-use-before-define": 0, "@typescript-eslint/ban-ts-ignore": 0, "@typescript-eslint/no-empty-function": 0, diff --git a/src/utils/state.ts b/src/utils/state.ts index 43f4ce68c..c2d70b782 100644 --- a/src/utils/state.ts +++ b/src/utils/state.ts @@ -54,7 +54,7 @@ export const useStateWithDeps = ( // If the property has changed, update the state and mark rerender as // needed. if (currentState[k] !== payload[k]) { - currentState[k] = payload[k]! + currentState[k] = payload[k] // If the property is accessed by the component, a rerender should be // triggered.