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

App can't restart with path configuration #219

Open
ajdubovoy opened this issue Jul 2, 2024 · 0 comments
Open

App can't restart with path configuration #219

ajdubovoy opened this issue Jul 2, 2024 · 0 comments

Comments

@ajdubovoy
Copy link

Hi,

I'm building a new iOS app with turbo-navigator.

I have the following line:

  private lazy var navigator = TurboNavigator(pathConfiguration: pathConfiguration)
  private let pathConfiguration = PathConfiguration(sources: [
      .file(Bundle.main.url(forResource: "path-configuration", withExtension: "json")!),
      .server(URL(string: "\(rootURL)configurations/paths.json")!)
  ])

When I build and launch the app, it works totally fine and loads the path configuration successfully. But, when I try to close and reload the app (or rebuild it), I just get this:

CleanShot 2024-07-02 at 18 15 08@2x

And after a while in the console:

0x13201cc40 - [PID=49325] WebProcessProxy::didBecomeUnresponsive:

I also have a print statement before the homepage loads, and this does not get executed. So, it seems like turbo-ios doesn't even try to load the first page.

The error persists until I uninstall and rebuild the app, and then it works fine...until I build again or reopen.

I've found that it fixes fine when I change my code to:

private lazy var navigator = TurboNavigator()

So, I'm a bit baffled and wondering if there's a bug in turbo-ios with how it caches path configuration or something like that. Would greatly appreciate your help.

Thanks so much ❤️

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

No branches or pull requests

1 participant