-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enable New Loader by default #6337
Conversation
This commit enables the new loader by default. Also, adds a way to opt-out the new loader. Changes * Enable the new loader by default * Replace "newLoader" URL query with "oldLoader" to force to use the old A-Frame based implementation for testing * Replace APP.hub.user_data.hubsUseNewLoader with APP.hub.user_data.hubsUseOldLoader to disable the new loader at room-level. * Update shouldUseNewLoader() to use "oldLoader" and APP.hub.user_data.hubsUseOldLoader
Looks good to me. Are you planning to add the UI here on another PR? I think it would also be good to reload all clients when that flag is updated by the admin. Do you know if that user_data update is triggering any event that we can use to reload all clients? Maybe we need to add it to reticulum. Probably for another PR. |
Update: We don't merge this PR soon. As we have been discussing internally, we changed a plan a little bit. New plan
Yes, I'm making another PR for adding the toggle UI. Once the toggle UI PR will be merged, we can ship the code. After the code shipment, when we will feel confident about the new loader we can enabled it by default by merging this PR.
I'm thinking the same. Ideally all the clients in a room should reload the page when the new loader is toggled. But I don't really want to change the reticulum code now in this very tight schedule. I'm checking through the client and reticlum code to try to find API or systems that triggers reload the page on a certain event and we can reuse. Probably the client reload PR would be another PR from the toggle UI PR. In short, we need two or three PRs related to new loader enable/disable. By the initial new loader release
After the initial release, by when we will enable the new loader by default
|
Regarding this
If I'm right it seems to be possible in Hubs Phoenix channel "hub_refresh" event listener in src/hub.js because
So Hubs Client can check if new loader activation flag is changed and invoke the page reload if it happens. I will make a PR... |
We have released the initial new bitECS based client that is disabled by default. We will think of enabling it by default when we will feel confident about the new client stability. Closing this PR for now because it's already old. Let's make a new one when we will enable it by default. |
Related #6325
This commit enables the new loader by default. Also, adds a way to opt-out the new loader.
Changes
TODO (This PR or another PR)