Replies: 3 comments 1 reply
-
Hi @abb438. Where are you trying to use the hooks? They can only be used in a child component of the component where the So this will NOT work:
Something like this will work:
Note how the MyComponent is a child component of the app component. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry for the delayed response.
|
Beta Was this translation helpful? Give feedback.
-
Yes, that will not work because the you are trying to use the hook in the same component that the
That should work. |
Beta Was this translation helpful? Give feedback.
-
It is written using translation software. Sorry if there are any unnatural points.
I tried to get the load status of the map, but the value does not change from false or not_loaded.
const status = useApiLoaded();
useEffect(() => {
cosnole.log(status);
}, [status]);
I believe this is the value used to get the spinner while the map is loading, am I wrong?
The useApiLoadingStatus value does not change as well.
Beta Was this translation helpful? Give feedback.
All reactions