Skip to content

firebase-collection: Modifying new locally-pushed items throws #61

@kevinpschaaf

Description

@kevinpschaaf

Repro: http://jsbin.com/yuzixa/edit?html,console,output

  • Click 'Add'
  • Type in input
  • Note error
Uncaught Error: Firebase.child failed: First argument was an invalid path: "undefined". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"

This is due to the previous #60 fix which avoided the round-trip modification from the server, which is where the local __firebaseKey__ property is set. Simple fix is to set the new key in add after push, as its synchronously available there.

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