Skip to content

Commit

Permalink
馃敩 remove extra ref assign (#5433)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Jun 1, 2021
1 parent 8eddf5d commit 8989120
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ export function useForm<
});
const formStateRef = React.useRef(formState);

contextRef.current = context;
resolverRef.current = resolver;

const shouldRenderBaseOnError = React.useCallback(
async (
shouldSkipRender: boolean,
Expand Down

0 comments on commit 8989120

Please sign in to comment.