fix: email not always loading while viewing auth collections
This commit is contained in:
@@ -42,7 +42,6 @@ const Form: React.FC<Props> = (props) => {
|
||||
initialState, // fully formed initial field state
|
||||
initialData, // values only, paths are required as key - form should build initial state as convenience
|
||||
waitForAutocomplete,
|
||||
log,
|
||||
} = props;
|
||||
|
||||
const history = useHistory();
|
||||
|
||||
@@ -38,7 +38,7 @@ const useField = <T extends unknown>(options: Options): FieldType<T> => {
|
||||
|
||||
const initialValue = field?.initialValue as T;
|
||||
|
||||
const [internalValue, setInternalValue] = useState(field?.value as T);
|
||||
const [internalValue, setInternalValue] = useState(() => field?.value as T);
|
||||
const [internallyValid, setInternallyValid] = useState<boolean>(undefined);
|
||||
|
||||
// Debounce internal values to update form state only every 60ms
|
||||
|
||||
Reference in New Issue
Block a user