Skip to content

Commit

Permalink
Enable react-hooks eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
enstulen committed Dec 12, 2023
1 parent 92f3077 commit d50f558
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
'plugin:vitest-globals/recommended',
'plugin:cypress/recommended',
'prettier',
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['react', 'react-hooks', 'import', '@typescript-eslint', 'vitest', 'cypress'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const PrefillDataProvider = ({ children, form }: PrefillDataProviderProps
if (fyllutPrefillData) setPrefillData(fyllutPrefillData);
};
loadPrefillData(form);
}, []);
}, [baseUrl, form, http, submissionMethod]);

return <PrefillDataContext.Provider value={{ prefillData }}>{children}</PrefillDataContext.Provider>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const FillInFormPage = ({ form, submission, setSubmission, formUrl }) =>
}

setFormForRendering(formToRender);
}, [form, submissionMethod, prefillData]);
}, [form, submissionMethod, prefillData, submission]);

useEffect(() => {
loggSkjemaApnet(submissionMethod);
Expand Down

0 comments on commit d50f558

Please sign in to comment.