Giter Club home page Giter Club logo

Comments (4)

DanielHeath avatar DanielHeath commented on May 25, 2024 1

Looking good!

from react-debounce-render.

podefr avatar podefr commented on May 25, 2024

Hi Daniel,

Thanks for the suggestion. Does the maxWait option of _.debounce address your issue? Doing something like this should ensure that your component gets rendered at least 4 times per second:

const debouncedMyReactComponent = debounceRender(MyReactComponent, 100, { 
    maxWait: 250 
});

ref: https://lodash.com/docs/#debounce

from react-debounce-render.

DanielHeath avatar DanielHeath commented on May 25, 2024

That would do it, yeah.

Bit of a thing to trip over newcomers, though. Maybe a note in the sample usage section of the readme?

from react-debounce-render.

podefr avatar podefr commented on May 25, 2024

Hi Daniel,

I've updated the documentation to add the maxWait example. It also mentions that lodash debounce is used under the hood and that it can be configured. I hope this addresses the issue you raised?

Let me know if I can close this ticket and thanks for use this lib!

from react-debounce-render.

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.