mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor(schema): simplify validation and OpenAPI generation (#2709)
This commit is contained in:
1 parent
4bc5593f9f
commit
de1fd95a99
510 files changed
+29494
-36131
No files matched your search
@@ -3,7 +3,7 @@
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import {useCallback, useLayoutEffect, useRef} from 'react';
|
||||
import type {FieldValues, UseFormReturn} from 'react-hook-form';
|
||||
import {assign, getInitialSnapshot, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
import {assign, initialTransition, type SnapshotFrom, setup, transition} from 'xstate';
|
||||
|
||||
export type RemoteFormIdentityKey = string | number | boolean | null | undefined;
|
||||
|
||||
@@ -109,7 +109,7 @@ export type RemoteFormResetMachineSnapshot = SnapshotFrom<typeof remoteFormReset
|
||||
export type RemoteFormResetMachineStateValue = 'unhydrated' | 'hydrated';
|
||||
|
||||
export function createRemoteFormResetMachineSnapshot(): RemoteFormResetMachineSnapshot {
|
||||
return getInitialSnapshot(remoteFormResetStateMachine);
|
||||
return initialTransition(remoteFormResetStateMachine)[0];
|
||||
}
|
||||
|
||||
export function transitionRemoteFormResetSnapshot(
|
||||
|
||||
Reference in new issue
Block a user