Skip to content

target.splice is not a function #195

Closed
@gboor

Description

@gboor

In the firestore (@next) release, there is a function that deals with breaking down a path called walkSet. Inside this function, the path part is tested with isFinite and added to an array if true. If any other part of the path is !isFinite, the target is an object and not an array, resulting in "target.splice is not a function".

I think this is quite a rare case and highly dependent on the data in firestore, so I have created a Sandbox example using a demo account to connect to the specific data where I encountered this. It can be found here;

https://codesandbox.io/s/k9p895y6j5

main.js handles the setup and login with the demo account and App.vue is where the firestore binding causes this error.

The binding does work (or so it seems), as the data (1 customer) does appear in the document before it errors out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions