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
Layer stays in "Awaiting State" #2131
Comments
@SymbolixAU "Awaiting state" means the layer has just been created, but not processed/matched by deck.gl. The second set of layers need to be supplied to deck.gl so that they can be matched against the previous "generation" layers (or initialized, if new). If you are using Javascript API you need to call something like:
Also try setting |
A bit further digging. If I just use one layer, every time I call
The update works as expected. However, I have to keep track of the layers in an array (because the user can update individual layers at a time), so doing
works at start-up. But if I replace In the absence of a fully reproducible example, when the user presses the 'update button ' the workflow is
|
True to its Reactive roots, deck.gl does shallow comparison on almost everything. If you send it the same array, it will not do a deep comparison and and just not update. Try creating a new array, e.g:
|
@ibgreen Yes! that's the one. Thanks. |
Issue
I'm building a non-react application using R and Shiny (Shiny is a package for building web apps from
r
)I can render layers without issue, but I can't get them to update.
Actual Result
This screenshot shows a
scatterplot
layer and anarc
layer. Both layers rendered at startup. I've logged thearcLayer
in the console. The first object in the console shows the lifecycle valueI then changed the country to Zimbabwe (it started at the UK, where the arcs originate), and pressed the
update map
button.This logged the updated
arcLayer
in the console asThe data prop in the arcLayer is successfully changing, but the layer stays at "Awaiting State"
How can I make the layer update? Is there a way to force the layer to update?
Let me know if you need any extra details.
To Do List
The text was updated successfully, but these errors were encountered: