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
I get the RangeError: Maximum call stack size exceeded when the .unlisten method is called on all instances. Those models are recursively checking their relationships and are getting stuck in a loop when traversing from Group -> Course -> Group -> Course -> etc.
Let me know if this is a known issue or you need any other documentation! Thanks.
I'm Running:
Spraypaint v0.10.23
React v16.13.1
Node v14.4.0
The text was updated successfully, but these errors were encountered:
geeosh
changed the title
Maximum call stack exceeded with two connected models
Maximum call stack exceeded in unlisten when there are models with bi-directional relationships
Sep 7, 2021
I'm really enjoying using Spraypaint (currently in React, and potentially next in React Native).
I am getting an uncaught
RangeError: Maximum call stack size exceeded
when model instances are trying to unlisten. I have model syncing turned on:I have two models, Course and Group. A course belongs to a group, and a group has many courses.
I am loading both from the API:
I get the
RangeError: Maximum call stack size exceeded
when the.unlisten
method is called on all instances. Those models are recursively checking their relationships and are getting stuck in a loop when traversing from Group -> Course -> Group -> Course -> etc.It hits the exception on model.ts line 548:
Let me know if this is a known issue or you need any other documentation! Thanks.
I'm Running:
The text was updated successfully, but these errors were encountered: