Skip to content

Commit

Permalink
fix: avoid re-render on every importLibrary() call (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekip committed Dec 22, 2023
1 parent 85e1a6e commit 32b5894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/api-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function useGoogleMapsApiLoader(props: APIProviderProps) {

return res;
},
[]
[loadedLibraries]
);

useEffect(
Expand Down

0 comments on commit 32b5894

Please sign in to comment.