Previously, when a synced app loaded for the first time, we would resolve the sync.connect() promise and then change the URL immediately to append the sync instance id. This would cause apps to start loading and rendering their scene only to be reloaded by the URL change.
This PR changes sync.connect() so that it rejects the promise if there is not already a sync instance id in the url. This allows apps to avoid loading and rendering a scene on initial load.
Previously, when a synced app loaded for the first time, we would resolve the
sync.connect()
promise and then change the URL immediately to append the sync instance id. This would cause apps to start loading and rendering their scene only to be reloaded by the URL change.This PR changes
sync.connect()
so that it rejects the promise if there is not already a sync instance id in the url. This allows apps to avoid loading and rendering a scene on initial load.