Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error while importing 'APILoadingStatus' #230

Closed
bansari-electroscan opened this issue Feb 20, 2024 · 0 comments · Fixed by #232
Closed

[Bug] Error while importing 'APILoadingStatus' #230

bansari-electroscan opened this issue Feb 20, 2024 · 0 comments · Fixed by #232
Labels
bug Something isn't working

Comments

@bansari-electroscan
Copy link

bansari-electroscan commented Feb 20, 2024

Description

Error: 'APILoadingStatus' (imported as 'APILoadingStatus') was not found in '@vis.gl/react-google-maps'

Steps to Reproduce

Trying to use the following example from documentation:

import {useApiLoadingStatus, APILoadingStatus} from '@vis.gl/react-google-maps';

const MyComponent = () => {
  const status = useApiLoadingStatus();

  useEffect(() => {
    if (status === APILoadingStatus.FAILED) {
      console.log(':(');

      return;
    }
  }, [status]);

  // ...
};

Environment

  • Library version: 0.7.0
  • Google maps version: weekly
  • Browser and Version:
  • OS:

Logs

No response

@bansari-electroscan bansari-electroscan added the bug Something isn't working label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant