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

error on calling navigate from onMount #227

Closed
ferdavs opened this issue May 27, 2021 · 1 comment
Closed

error on calling navigate from onMount #227

ferdavs opened this issue May 27, 2021 · 1 comment

Comments

@ferdavs
Copy link

ferdavs commented May 27, 2021

onMount(() => {
   if (user.loggedIn)
     navigate({ page: Main, props: { user: user } });
  else
     navigate({ page: Login }); 
  });
}

Gives error Error: navigate requires frame option to be a native Frame, a FrameElement, a frame Id, or null

Tried to add <frame id="main-frame1"> but still same.

@ferdavs
Copy link
Author

ferdavs commented May 28, 2021

found the solution
#82

@ferdavs ferdavs closed this as completed May 28, 2021
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

No branches or pull requests

1 participant