Skip to content

Auto archive state when state changes #13

@ethanyuwang

Description

@ethanyuwang

In the movie example app, I saw it uses a timer to archive the state every other 30 seconds.
https://github.com/Dimillian/MovieSwiftUI/blob/2897f8dfd3ea8370fbecacf56a8516f25d71efe8/MovieSwift/MovieSwift/views/components/home/HomeView.swift#L23

I would like the state to archive right after when a user is authenticated to save authenticated: true, so next time when user opens the app it doesn't load the sign-in screen. Is there a way to subscribe to state change and auto archive state when state changes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions