Skip to content
This repository was archived by the owner on Jan 12, 2019. It is now read-only.
This repository was archived by the owner on Jan 12, 2019. It is now read-only.

[Paginate] Using $key for sorting in the infinite scroll doesn't work #92

Description

@pdesgarets

It works only for few scrolls, then ( I guess when the cache is not big enough) it calls startAt with 2 arguments, the second being the key if the sorting field is '$key'. And Firebase does not like having 2 arguments in startAt on an orderByKey query.

See http://plnkr.co/gfbHcaOKYvRH4txja4dR

I put there a kind of fix in firebase-util-tweaked.js, replacing all startAt(key.val, key.key) by startAt(key.val, this.field === '$key' ? undefined : key.key) (approximately), please tell me if I should make a PR of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions