Git Product home page Git Product logo

react-idle's People

Contributors

grgur avatar mschwartz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-idle's Issues

Examples

The component looks like it should work. We need to add examples.

Demo weirdly broken with adblocker

Chrome stable 71.0.3578.98, uBlock origin 1.17.4, MacOS.

  • load the demo page https://react-idle.modus.app/
  • "render on idle" should be off
  • click some months (>5)
  • quickly tab some months (>5)
  • quickly tick "render on idle"

After the last step, the screen starts blinking and months are continuously selected and deselected.

It's as if the page "buffered" really many tabs and is now replaying each change.

The weirdness doesn't stop on its own.

Leaving the browser tab (e.g. focusing on another tab or window), allows process to conclude.

Views on dom manipulation in requestIdleCallback

It suggested that we should avoid dom updates in the requestIdleCallback and use requestAnimationFrame instead. Will using this library cause dom updates during requestIdleCallback or is it upto react to find the right time and handle it accordingly?

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.