Skip to content
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

Screen is not created newly when showing with no_stack = true #105

Closed
baochungit opened this issue Jan 15, 2024 · 1 comment
Closed

Screen is not created newly when showing with no_stack = true #105

baochungit opened this issue Jan 15, 2024 · 1 comment

Comments

@baochungit
Copy link

baochungit commented Jan 15, 2024

My situation is: I have 2 screens lobby and match. I put the print([screen name]) in each screen init function for debugging

Step 1: From lobby go to match by this code:

monarch.hide(hash("lobby"))
monarch.show(hash("match"), { no_stack = true })

Result: lobby closed, match shown. Debug console showing "match"

Step2: From match go to lobby by this code:

monarch.hide(hash("match"))
monarch.show(hash("lobby"), { no_stack = true })

Result: match closed, lobby shown. Debug console showing "lobby"

Step 3: From lobby go to match by the same code as in step 1
Result: lobby closed, match shown. Debug console not showing "match". Thus, the match screen just showing the old content

@baochungit
Copy link
Author

Ah sorry, just checked again, it seems due to the Preload property on match screen

@baochungit baochungit closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant