Comments (4)
No idea, but firebase-util is not compatible with 3.x, see #96
from firebase-util.
Looks the same as #100.
from firebase-util.
also, not sure if it helps, but changing from $key to $priority or $name stops the error. However, after a certain limit array elements are replaced. so we keep getting new elements, but older ones are replaced.
from firebase-util.
So, while I do not have an answer for the first part of the question, based on the additional note, I have this fix:
var scrollRef = new firebase.util.Scroll(baseRef, '$priority', {maxCacheSize: 750, windowSize: 500});
Setting the maxCacheSize and windowSize to a higher value should solve the issue. As per documentation, if we exceed windowSize then the start of the array is trimmed to keep the size under limit.
Documentation:
Keys/values that can be passed via opts:
{int} windowSize: the maximum number of records to have loaded in the list at any given time. 3-5 times the size of the viewable window is a good optimization, depending on how fast content is scrolled and the payload of each record (i.e. how long it takes to download).
{int} maxCacheSize: in general, leave this as the default. This controls the internal cursor's cache, which is used to find the current position in the list. This controls how many keys it can load at any given time. This is, by default, three times the size of windowSize and should always be larger than windowSize.
from firebase-util.
Related Issues (20)
- Paginate $key error HOT 1
- Paginate: error removeChild
- demo WSOD HOT 1
- Scroll to last option is required HOT 10
- Calling scroll.next() seems to take longer to return results after a few calls to it
- Angular 2 Pipes and NormalizedRef.toString() HOT 3
- Scroll not working on normalized collection HOT 1
- NormalizedCollection constructor error HOT 2
- bind() function in Firebase-util.js is not working in IE, Firebase.util.join() also not working throwing errors HOT 1
- TypeError: Cannot read property 'Scroll' of undefined HOT 4
- Can't join different values to the same path
- Node JS normalized collection HOT 1
- $remove on a NormalizedCollection throws an Exception HOT 2
- FireBase NormalizedCollection white screen HOT 2
- [Paginate] Using $key for sorting in the infinite scroll doesn't work
- When will it be ready for production? HOT 2
- Update to SDK 3.0 HOT 40
- NormalizedCollection orderBy HOT 1
- gulp bundle issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-util.