react-admin-firebase icon indicating copy to clipboard operation
react-admin-firebase copied to clipboard

Console error: "RangeError: Maximum call stack size exceeded"

Open dev-gyata opened this issue 5 years ago • 8 comments
trafficstars

I have being getting this from the server, am using the current versions of react-admin-firebase and react-admin err

dev-gyata avatar Nov 19 '20 03:11 dev-gyata

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?

  1. What types of fields are in the document? eg: Timestamp, DocumentReference, GeoLocation
  2. What view causes the error? List, Create
  3. Is there a certain InputField that causes the error?

Let me know how you go, Ben

benwinding avatar Nov 21 '20 03:11 benwinding

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

dev-gyata avatar Nov 22 '20 17:11 dev-gyata

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.

benwinding avatar Nov 22 '20 22:11 benwinding

Okay mate, thanks

dev-gyata avatar Nov 22 '20 23:11 dev-gyata

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

dev-gyata avatar Nov 22 '20 23:11 dev-gyata

@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

davidstackio avatar Jan 27 '21 23:01 davidstackio

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!

arnespremberg avatar Oct 25 '21 15:10 arnespremberg

I am also experiencing this error Doing List and trying to show an array of reference items.

Mizaro avatar Feb 19 '22 00:02 Mizaro