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.

Scroll not working on normalized collection #83

@laurensnl

Description

@laurensnl

I've got an issue with infinite scrolling a list with a normalized collection.

The initial data is loaded correctly, but no subsequent data is loaded on scroll, but no more data is loaded when scrolling down. Infinite scrolling does work when I replace the normalized collection ref to a standard Firebase ref. What am I doing wrong here?

// map the paths we are going to join
var norm = new Firebase.util.NormalizedCollection(
    FB.child('sessions'),
    [FB.child('accounts'), 'accounts', 'sessions.user']
);

// specify the fields for each path
norm = norm.select( 'sessions.user', 'sessions.loginTime', 'sessions._sort', ... );

// get a reference we can use like a normal Firebase instance
var scrollRef = new Firebase.util.Scroll(norm.ref(), '_sort');

firebase#2.2.9
firebase-util#0.2.6

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