-
Notifications
You must be signed in to change notification settings - Fork 22
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
SDK's manager ready event callback might not be applied when a reload is triggered #866
Comments
Thanks |
As there is no reproducible example, I've made one : https://jsfiddle.net/fxi/6Loabz8k/ But I was not able to reproduce the behaviour. The 'ready' event is always received, even after a reload. Can you provide more info ? |
@trepmag Could you provide more info ? |
Sorry not much since in practice reproducing the context isn't that much trivial (run a sdk app over a specific mapx version then rerun the same app over an update mapx version that requires a reload)... |
ok.. I see. We should probably do something to reload the page that holds the SDK manager, e.g. a message "updated" ? This would also make sure that the sdk package would be the latest version, if fetched from "app.mapx.org/sdk" ... If using a CDN, this could lead to some versions mismatch, though.. |
I close this. After a dev session with @trepmag, I was able to test almost all cases of update in static/app mode and no issue observed. |
This happens when, for instance, mapx is pushing a new version and asking the user to reload. Then, it appears that on reload the initially
ready
callback isn't registered anymore or triggered on the reloaded instance?!...The text was updated successfully, but these errors were encountered: