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

Timing change in screen becoming 'visible' #98

Closed
dri-richard opened this issue Aug 22, 2023 · 1 comment
Closed

Timing change in screen becoming 'visible' #98

dri-richard opened this issue Aug 22, 2023 · 1 comment

Comments

@dri-richard
Copy link

(we're upgrading Monarch to v4 as a background task, hence the trickle of issues. This issue relates to v4.4.1)

For some screens, we use monarch.post as part of the setup. The typical flow is that during init() the screen will message another script, and that script will in turn use monarch.post(). However these messages are no longer received as monarch.post() only works for visible screens and recent changes mean that a screen's visible field is only set at the end of its transition.

This may be considered the correct behaviour, in which case we'll find an alternative approach.

@britzl
Copy link
Owner

britzl commented Oct 26, 2023

Hmm, yeah, it is a bit strange that you're not able to call monarch.post() until the screen is visible... Surely it would make more sense to be able to call monarch.post() as soon as the screen is initialized?

@britzl britzl closed this as completed in 742779d Oct 26, 2023
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

2 participants