NS
{
tableAtom.getTreeId(): 123
}
Size: a a a
NS
a
NS
NS
NS
NS
NS
NS
a
NS
a
NS
NS
NS
NS
function handleAction(
action: AnyActionCreator,
callback: (store: Store, payload: any) => void,
): void {
const store = useContext(ctx);
if (!store) throw new Error('[reatom] The provider is not defined');
return useEffect(() => {
// @ts-ignore
store.subscribe(action, payload => {
callback(store, payload);
});
});
}
h
eckPrinterSuccess, eckPrinterSuccess, (store) => {NS
store
только теряетсяNS
a
function handleAction(
action: AnyActionCreator,
callback: (store: Store, payload: any) => void,
): void {
const store = useContext(ctx);
if (!store) throw new Error('[reatom] The provider is not defined');
return useEffect(() => {
// @ts-ignore
store.subscribe(action, payload => {
callback(store, payload);
});
});
}
h
eckPrinterSuccess, eckPrinterSuccess, (store) => {a