You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have an onDispose callback in LifecycleEffectOnce. Also, the API should be similar to DisposableEffect, except it binds to the screen's lifecycle. Something like this:
@s97712 you have two choses when you want to use a Voyager API that depends on Screen, you can make your child components extension of Screen or you can use LocalNavigator.currentOrThrow.lastItem
It would be useful to have an onDispose callback in LifecycleEffectOnce. Also, the API should be similar to DisposableEffect, except it binds to the screen's lifecycle. Something like this:
Currently, I've duplicated the LifecycleEffectStore logic for my use case, but it would be nice to have this feature in the library.
Originally posted by @shpasha in #425 (comment)
The text was updated successfully, but these errors were encountered: