rive-app / rive-app/rive-react

`onDraw` doesn't trigger

Open
#186 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
1.2k
Forks
58
Avg merge
3h 23m
Merged PRs (30d)
6

Description

I noticed one of the EventType is Draw but can't seem to get any callbacks.

    rive.on(EventType.Draw, (ctx) => {
      console.log(ctx);
    });

^ this is the code i am running. I can't really find much documentation around this either.

Does this properly not exist?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the issue. Start by locating EventType.Draw and tracing the event-registration path used by the shown callback, then reproduce the behavior in a minimal rive-react example. Done means the callback behavior is verified and either works as documented or the missing behavior is covered by documentation or a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.