codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
71 stars 16 forks source link

fix: await provider.synced before adding runtime #496

Closed lihebi closed 12 months ago

lihebi commented 12 months ago

There was a buggy behavior: the first time spawning a runtime, it would not show up. It's because we tried to add the runtime before the provider was ready, thus the adding was dropped.

This PR fixes it by await after the provider is synced.