Screen is not created newly when showing with no_stack = true
baochungit opened this issue · 1 comments
baochungit commented
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 commented
Ah sorry, just checked again, it seems due to the Preload property on match
screen