fix(Gridler): refresh cells after data load
This commit is contained in:
@@ -459,6 +459,8 @@ const { Provider, useStore: useGridlerStore } = createSyncStore<GridlerStoreStat
|
||||
detail: { clearMode, data, page: pPage, state },
|
||||
})
|
||||
);
|
||||
|
||||
state.refreshCells();
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error('loadPage Error: ', page, e);
|
||||
|
||||
@@ -290,6 +290,8 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG
|
||||
onChange(buffers);
|
||||
}
|
||||
});
|
||||
|
||||
getState('refreshCells')?.();
|
||||
}, [props.url, props.authtoken, props.filter, JSON.stringify(props.options), mounted, setState]);
|
||||
|
||||
return <></>;
|
||||
|
||||
Reference in New Issue
Block a user