We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec9dfa1 commit 48c0f5bCopy full SHA for 48c0f5b
packages/connect-react/src/hooks/form-context.tsx
@@ -241,7 +241,10 @@ export const FormContextProvider = <T extends ConfigurableProps>({
241
]);
242
243
// clear all props on user change
244
- const [prevUserId, setPrevUserId] = useState(userId)
+ const [
245
+ prevUserId,
246
+ setPrevUserId,
247
+ ] = useState(userId)
248
useEffect(() => {
249
if (prevUserId !== userId) {
250
updateConfiguredProps({});
0 commit comments