-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
JSON.stringify cannot serialize cyclic structures #2290
Comments
It doesn't seem to be related to RNRF - looks like you are trying to pass some cyclic structure as param, it is not allowed (by react-navigation), please use pure Javascript objects |
I upgraded my project from V3 to V4 beta 19 and have the same issue, this must be related to RNRF. |
Just don't pass cyclic references. |
It seems that I'm lacking this knowledge. What do you mean by pure Javascript objects ? |
Where is RNRF |
I used actions like this : |
Okey, as I see from stack trace error is thrown by react-navigation, not RNRF... Anyway could you reproduce this issue with Example project? |
I can give it a try |
@aksonov Same issue happened here while using wheelCanvas = this.updateCanvas(); ctx.drawImage(wheelCanvas, wheelCanvas.width / 2, wheelCanvas.height / 2); updateCanvas() {
} |
Version
Tell us which versions you are using:
Expected behaviour
When I tried to push a route from drawer page, by calling like this: Actions.<route_name>(), it should navigate to and display new specified route page.
Actual behaviour
But it throws this error message.
JSON.stringify cannot serialize cyclic structures.
Steps to reproduce
The text was updated successfully, but these errors were encountered: