We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Define a serializer that returns an object containing a reference to firestore.DocumentSnapshot
firestore.DocumentSnapshot
bindFirestoreRef('boundRef', ref, { maxRefDepth : 0, serialize: (snap) => ({ ...snap.data(), id: snap.id, snap, }), });
I would expect maxRefDepth : 0 to prevent vuexfire from binding nested document snapshots
maxRefDepth : 0
vuexfire
I'm getting Uncaught RangeError: Maximum call stack size exceeded
Uncaught RangeError: Maximum call stack size exceeded
I found a workaround:
bindFirestoreRef('boundRef', ref, { serialize: (snap) => Object.defineProperty( { ...snap.data(), id: snap.id, }, 'snap', { configurable: false, value: snap, } ), });
The text was updated successfully, but these errors were encountered:
It turned out that I wasn't a bug in vuexfire. It was a bug in Firebase (firebase/firebase-js-sdk#4258) that's fixed in the 8.2.5 release.
8.2.5
Sorry, something went wrong.
No branches or pull requests
Reproduction
Define a serializer that returns an object containing a reference to
firestore.DocumentSnapshot
Expected behavior
I would expect
maxRefDepth : 0
to preventvuexfire
from binding nested document snapshotsActual behavior
I'm getting
Uncaught RangeError: Maximum call stack size exceeded
Additional information
I found a workaround:
The text was updated successfully, but these errors were encountered: