Giter VIP home page Giter VIP logo

Comments (11)

FokkeZB avatar FokkeZB commented on September 20, 2024

I don't get it. The success handler should still fire and then update the table right?

from nl.fokkezb.infinitescroll.

iantearle avatar iantearle commented on September 20, 2024

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.

iantearle avatar iantearle commented on September 20, 2024

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.

FokkeZB avatar FokkeZB commented on September 20, 2024

Maybe this is the problem?

tidev/alloy@8e1ec77

from nl.fokkezb.infinitescroll.

FokkeZB avatar FokkeZB commented on September 20, 2024

Also depends on the sync adapter it seems. With properties it works fine with latest SDK/Alloy

from nl.fokkezb.infinitescroll.

FokkeZB avatar FokkeZB commented on September 20, 2024

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.

iantearle avatar iantearle commented on September 20, 2024

But removing silent and using the latest sdk/alloy no items get loaded?

from nl.fokkezb.infinitescroll.

iantearle avatar iantearle commented on September 20, 2024

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.

FokkeZB avatar FokkeZB commented on September 20, 2024

Little confused here. The fix is not working?

from nl.fokkezb.infinitescroll.

iantearle avatar iantearle commented on September 20, 2024

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.

FokkeZB avatar FokkeZB commented on September 20, 2024

No prob, good luck fixing it!

from nl.fokkezb.infinitescroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.