verma/pani — pull request #11 by crisptrutski (2014-10-29 11:38:25+00:00)
Title: Example demonstrates ref `:name` usage

Refs:
https://github.com/verma/pani/issues/1
https://github.com/verma/pani/issues/9

Made this while playing with the library, thought you might interested.

Feel free to ignore or suggest changes

(Note: includes https://github.com/verma/pani/pull/10)

BTW: great library, never tried Firebase before but seems to fit with Om really nicely, and this library feels quite idiomatic.

(One note on this `.push` pattern though is that it makes optimistic updates (duplicate local push to app-state before sending to Firebase) creates tricky bookkeeping.

Just using client guuids and writing directly to the path seems easier in this case, so not sure what the advantage of letting the service generate the ids really is..)