react-admin-firebase
react-admin-firebase copied to clipboard
Console error: "RangeError: Maximum call stack size exceeded"
I have being getting this from the server, am using the current versions of react-admin-firebase and react-admin
Hi @gyatashoa,
That looks like a client error that occurred in the browser. It could be due to having a DocumentReference field in one documents returned to the client. Can you give me some more information around the context of the issue?
- What types of fields are in the document? eg:
Timestamp,DocumentReference,GeoLocation - What view causes the error?
List,Create - Is there a certain
InputFieldthat causes the error?
Let me know how you go, Ben
I think i found out what caused it. I was trying a to access a document reference in a list component. Is there any way around this
Currently this is not possible, as only the properties are accessible, hmmm that would be a good feature to resolve document references though...
This PR #127 is also a work in progress to try and allow document references.
Okay mate, thanks
Also wanted to know how to delete a file from firebase storage when its corresponding document is deleted . At the moment saving an image, saves the download path to that image in storage so I wanted to know how to deleted a document and it will also delete the corresponding image
@gyatashoa RE deleting images from storage when a document is updated, there's an issue for that here: https://github.com/benwinding/react-admin-firebase/issues/115
Hi there!
I'm currently running into the same issue... The requested document does contain a documentReference, however I have no idea how to get around that. Can I just disable requesting all fields in some way?
Any help would be appreciated!
I am also experiencing this error Doing List and trying to show an array of reference items.