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 1d379bb commit ca94175Copy full SHA for ca94175
packages/jotai/src/index.ts
@@ -89,6 +89,7 @@ export function loroMirrorAtom<S extends SchemaType>(
89
});
90
91
subAtom.onMount = (set) => {
92
+ set(store.getState() as InferType<S>);
93
const sub = store.subscribe((state, { direction }) => {
94
if (direction === SyncDirection.FROM_LORO) {
95
set(state);
0 commit comments