Skip to content

Problem with State update with interval #732

Open
@czystyl

Description

ezgif com-video-to-gif

  • Operating System: macOS 10.15
  • Revery Version: 0.29
  • OCaml version: version 4.06.1

I used setInterval to update the component state each 50 ms. The counter from the hook state was not updating every 50ms but much slower than expected. However, when we start moving the mouse over the app, or we use press/hold key from the keyboard, then the counter is incrementing much faster than before.

  • Search terms used: timer, set interval, counter

Metadata

Assignees

No one assigned

    Labels

    A-primitivesArea: Primitives, the basic building blocksbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions