Skip to content

Conversation

Ehesp
Copy link
Member

@Ehesp Ehesp commented Oct 2, 2025

This PR reworks how behaviors are handled internally, the public API doesn't change.

We now have 3 different behavior handler types:

  • init: called on initalization of UI, and sets the initial state to loading. These behaviors are called once the auth state is ready from firebase. Once all resolved, the state is set back to idle.
  • redirect: called on initalization after getRedirectResult has triggered - these could be used to handle upgrades and such.
  • callable: requires manually calling from application code

@Ehesp Ehesp merged commit 27ca8ed into @invertase/v7-development Oct 2, 2025
1 of 5 checks passed
@Ehesp Ehesp deleted the @invertase/behavior-rework branch October 2, 2025 11:05
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

Successfully merging this pull request may close these issues.

2 participants