Skip to content

Allow Strada components to connect when loaded on a background tab#36

Open
adampal wants to merge 1 commit intohotwired:mainfrom
adampal:main
Open

Allow Strada components to connect when loaded on a background tab#36
adampal wants to merge 1 commit intohotwired:mainfrom
adampal:main

Conversation

@adampal
Copy link

@adampal adampal commented May 23, 2024

This fixes #33

The basic change here is not ignoring the connect event even if the page is not yet active.
The issue with ignoring the connect event is that when the page becomes active, the web view has already fired it's connect event and the component isn't initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Web and native lifecycle event mismatch when called on a background tab

1 participant