I see that Raymond Camdon has a nice tutorial on collection-repeat Some of these options and optimisations are a step ahead of Sencha. This will reduce the client side memory and avoid the "out of memory" scenario. It also needs to support server side loading when scrolling either forward (currently supported) or backwards (not yet supported). To support smooth scrolling this data window needs to be larger than the actual data displayed on the screen. You could easily do this by adding an offset variable to your existing model and then treat the array as starting at this offset (defaulting the offset to 0 for backward compatibility). A more useful model would be to assume that the scrollable data is a sliding window of the larger dataset rather than assume it is always anchored to the start of the dataset. This would crash in your current implementation. In many business apps we need to allow uses to change to a large offset in the viewed dataset. Ion-infinite-scroll assumes that an array containing all loaded data is sufficient but IMHO this model breaks because for datasets with large numbers of rows invariably we run out of memory. Currently it's the only outstanding reason why I can't yet convince my employer to switch to Ionic. I've recently migrated from several years coding Sencha Touch to Ionic and for the most part I'm preferring Ionic but for many business apps containing large numbers of database rows (we're talking 100,000 or more) this missing feature is a show stopper.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |