Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Delay doesn't work #67

Closed
alexmngn opened this issue Apr 15, 2016 · 2 comments
Closed

Delay doesn't work #67

alexmngn opened this issue Apr 15, 2016 · 2 comments

Comments

@alexmngn
Copy link

alexmngn commented Apr 15, 2016

Hi there!
I can't make the parameter delay to work, it looks like a bug to me.

I tried with the following:


var myDataCollection = {
    path: '/services/collection',
    collection: true,
    cache: false,
    template: myData.template,
    delay: 3000,
    container: {
        data: {
            items: function(params, query, data) {
                return data;
            }
        }
    }
};

module.exports = [myData, myDataCollection];

Thanks!

@webpro
Copy link
Owner

webpro commented Apr 17, 2016

That should work (I've added a unit test for this now).

I guess you are using v0.8.0 or later, right?

@alexmngn
Copy link
Author

You were right I wasn't at the latest version, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants