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

[chore] remove unnecessary readiness checks #116

Merged
merged 2 commits into from
Jun 16, 2021

Conversation

chrisgervang
Copy link
Collaborator

@chrisgervang chrisgervang commented Jun 16, 2021

  • [chore] remove DeckAdapter.getProps({setReady})
  • [refactor] worldview remove "wait for ready" from lib
  • Users can now use deck.onLoad in their apps without hubble overriding it.

@@ -12,9 +11,6 @@ const mapSlice = createSlice({
reducers: {
updateViewState: (state, action) =>
void (state.viewState = {...state.viewState, ...action.payload})
},
extraReducers: builder => {
builder.addCase('@@kepler.gl/REGISTER_ENTRY', state => void (state.ready = true));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved out of mapSlice to appSlice, since mapSlice will soon be moved into the lib and we don't want to bring in unnecessary dependencies on kepler logic.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 944094325

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.06%) to 22.346%

Files with Coverage Reduction New Missed Lines %
modules/core/src/adapters/deck-adapter.js 1 0%
Totals Coverage Status
Change from base Build 941603956: 0.06%
Covered Lines: 139
Relevant Lines: 535

💛 - Coveralls

this.deck = deck;
const props = {
onLoad: () => setReady(true),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Users can now use onLoad in their apps without hubble overriding it.

@chrisgervang chrisgervang merged commit e387fa7 into master Jun 16, 2021
@chrisgervang chrisgervang deleted the chr/remove-set-ready branch June 16, 2021 20:21
@chrisgervang chrisgervang added this to the 1.3 milestone Oct 15, 2021
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