The application is svelte, but I don't think svelte is the cause of this problem.
What the application is doing:
What's the problem?
If the graph is correct and current and one of these other cases is present
step 5 will not happen for some reason. All features are created correctly and the sources are loaded into their corresponding layers, but those layers don't show up visually.
view.animate(), I can programmatically select them into a selection layer, where they show up correctly )The current workaround is to just wait for svelte to finish its current update cycle with await tick(), and then update the svelte stores again.
While this works fine, I'm not statisfied with the solution. All the data is already there before. Completely reloading ~5k features to get the map to refresh seems very overkill. (event if it's resonably fast)
What else have I tried?
.changed() on anything and everything