Comments (11)
I don't get it. The success handler should still fire and then update the table right?
from nl.fokkezb.infinitescroll.
I had:
properties.fetch({
query: lastQuery + ' OFFSET '+ thelength,
add: true,
silent: true,
success: function (col) {
(col.models.length === thelength) ? e.done() : e.success();
$.is.setOptions({
msgDone: String.format(L('isDone'), col.models.length)
});
},
error: e.error
});
And it wasn't inserting the new rows into the tableview, however I could see in debugging that it was still fetching the items. http://developer.appcelerator.com/question/160931/alloy-and-titanium-latest-fail-to-populate-table-from-collection-fetch - whilst not directly this issue (I was having trouble populating via other means), I assume it relates to it. Removing the silent:true makes "is" work for me, could it be because I am populating by another method and not initially with IS?
from nl.fokkezb.infinitescroll.
Can confirm that removing silent loads new data in latest Ti 3.2.0 and Alloy 1.3.0. However; on iPad 2 I get a memory leak on the tableview when loading additional data, I have had to revert back to previous versions just to test on the iPad.
from nl.fokkezb.infinitescroll.
Maybe this is the problem?
from nl.fokkezb.infinitescroll.
Also depends on the sync adapter it seems. With properties it works fine with latest SDK/Alloy
from nl.fokkezb.infinitescroll.
Ah, I see @tony fixed the reason I used silent
in a different way in the generated UI-callback now:
if (e && e.fromAdapter) return;
Will add note and remove it.
from nl.fokkezb.infinitescroll.
But removing silent and using the latest sdk/alloy no items get loaded?
from nl.fokkezb.infinitescroll.
I should also point out as I think you may believe that I am using Ti.App.Properties - my naming "properties" is because I am working with buildings/homes/castles - property, my fetch is from SQLite just in case that is throwing this thread out.
from nl.fokkezb.infinitescroll.
Little confused here. The fix is not working?
from nl.fokkezb.infinitescroll.
Sorry @FokkeZB ignore me. I'm going crazy. It does work by removing silent. What I am actually facing now is when the items load I get a massive memory leak and the app crashes. Only happens on iPad 2 that I can test, though on iPhone 5 it is remarkably slower than previous SDK's and Alloy. But this issue is beyond the scope of your widget. I apologise.
from nl.fokkezb.infinitescroll.
No prob, good luck fixing it!
from nl.fokkezb.infinitescroll.
Related Issues (20)
- Using widget with tabbed window HOT 1
- Remote data not available. HOT 3
- How to combine this module with module ticollectionview HOT 5
- crash with backbone.js and underscore.js libs HOT 1
- Remove footer when done? HOT 7
- Crash on Android after closing app with tab group and infinite scroll HOT 10
- Nice to have: Example without models/collections but normal payloads HOT 10
- Nice to have: onStart HOT 3
- May want to provide a warning for those who use postLayout in TableViewRow/ListViewRow HOT 1
- undefined is not an object (evaluating 'Ti.UI.ActivityIndicatorStyle.DARK') HOT 1
- There's a way to block? HOT 2
- Enhancement request - any plans to add "reverse scrolling" similar to a typical chat app? HOT 5
- Using with search option HOT 1
- How to combine this widget with Pull to Refresh Widget HOT 1
- Add To List and Rest List HOT 1
- Load all items in the list HOT 3
- Success Events not firing on Android (sometimes) if the ListView using the widget is not in focus HOT 4
- Odd loading issue with ListViews in iOS and latest SDKs (6-7) HOT 1
- Help Me!! HOT 1
- IOS error HOT 8
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 nl.fokkezb.infinitescroll.