Skip to content

Commit

Permalink
fix: fix accidentally removed onLoaded
Browse files Browse the repository at this point in the history
fixes #1656
  • Loading branch information
RomanHotsiy committed Jul 1, 2021
1 parent 3df72fb commit b41a8b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/StoreBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export function StoreBuilder(props: StoreBuilderProps) {
}
}, [resolvedSpec, specUrl, options]);

React.useEffect(() => {
if (store && onLoaded) {
onLoaded();
}
}, [store, onLoaded])

return children({
loading: !store,
store,
Expand Down

0 comments on commit b41a8b4

Please sign in to comment.