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

Export CesiumInsideComponentType etc #103

Closed
rot1024 opened this issue Jul 24, 2019 · 1 comment
Closed

Export CesiumInsideComponentType etc #103

rot1024 opened this issue Jul 24, 2019 · 1 comment

Comments

@rot1024
Copy link
Member

rot1024 commented Jul 24, 2019

Because it is necessary when using React.useRef in TypeScript.

const Component: React.FC = () => {
  const ref = React.useRef<CesiumInsideComponentType<Viewer, ViewerProps>>(null);

  return <Viewer ref={ref} />;
};
@rot1024
Copy link
Member Author

rot1024 commented Jul 25, 2019

This issue was solved in v1.6.0.

@rot1024 rot1024 closed this as completed Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant