fix(Gridler): refresh cells after data load

This commit is contained in:
Hein
2026-02-11 15:24:24 +02:00
parent fb3a1e1054
commit f47a230b62
2 changed files with 4 additions and 0 deletions

View File

@@ -459,6 +459,8 @@ const { Provider, useStore: useGridlerStore } = createSyncStore<GridlerStoreStat
detail: { clearMode, data, page: pPage, state }, detail: { clearMode, data, page: pPage, state },
}) })
); );
state.refreshCells();
}) })
.catch((e) => { .catch((e) => {
console.error('loadPage Error: ', page, e); console.error('loadPage Error: ', page, e);

View File

@@ -290,6 +290,8 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG
onChange(buffers); onChange(buffers);
} }
}); });
getState('refreshCells')?.();
}, [props.url, props.authtoken, props.filter, JSON.stringify(props.options), mounted, setState]); }, [props.url, props.authtoken, props.filter, JSON.stringify(props.options), mounted, setState]);
return <></>; return <></>;