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

feat(globe): wait for layer to load before advancing timestep #1268

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

usefulthink
Copy link
Contributor

No description provided.

Comment on lines +53 to +59
const layerLoadingState = useSelector(layerLoadingStateSelector);
const mainLayerState = mainLayerId
? layerLoadingState[mainLayerId]
: ('idle' as LayerLoadingState);
const compareLayerState = compareLayerId
? layerLoadingState[compareLayerId]
: ('idle' as LayerLoadingState);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should move this into the parent component and pass it here as a single prop layersLoaded? I think that feels slightly more correct than to pass the layer-ids into this component.

// eslint-disable-next-line no-warning-comments

useLayerLoadingStateUpdater(globe, props.onLayerLoadingStateChange);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you pls re-add // eslint-disable-next-line no-warning-comments or open an issue for this? The lint-and-test run is failing. Also deployment would be blocked :)

@usefulthink usefulthink force-pushed the feat/animation-wait-for-render branch from 79a7f34 to eddf8cc Compare August 17, 2023 12:29
@usefulthink usefulthink merged commit 6807f57 into develop Aug 17, 2023
@usefulthink usefulthink deleted the feat/animation-wait-for-render branch August 17, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants