fix: fix accidentally removed onLoaded

fixes #1656
This commit is contained in:
romanhotsiy 2021-07-01 12:37:40 +03:00
parent 3df72fb99f
commit b41a8b4ac7
No known key found for this signature in database
GPG Key ID: 0BC2221278CCBBB8

View File

@ -58,6 +58,12 @@ export function StoreBuilder(props: StoreBuilderProps) {
} }
}, [resolvedSpec, specUrl, options]); }, [resolvedSpec, specUrl, options]);
React.useEffect(() => {
if (store && onLoaded) {
onLoaded();
}
}, [store, onLoaded])
return children({ return children({
loading: !store, loading: !store,
store, store,