Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm listening to a subcollection like this:
firestoreConnect(({ userId }) => [{
collection: `users/${userId}/favorites`,
storeAs: 'favorites'
}])
The favorites are basically a collection of book ids.
The book ids contain the '.' (dot) character.
The initial LISTENER_RESPONSE
populates the store correctly:
But then if I try to add another book as favorite:
firestore.set(`users/${userId}/favorites/${bookId}`, {
savedAt: firestore.FieldValue.serverTimestamp(),
});
Note that the ordered
store is unaffected.
Also If I try to delete a favorite:
firestore.delete(`users/${userId}/favorites/${bookId}`);
It fails to delete it from the data
store:
What is the expected behavior?
When listening to a collection with documents using the '.' (dot) characters in their id, it should correctly handle additions/updates/deletions in firestore.data
.
Which versions of dependencies, and which browser are affected by this issue? Did this work in previous versions or setups?
This is happening with [email protected] and [email protected]
This is within a React Native project 0.55.3 using [email protected].
Steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
Activity