rive-app / rive-app/rive-wasm

API suggestion: ability to get current reference count for RiveFile

Open
#369 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
968
Forks
85
Avg merge
15h 1m
Merged PRs (30d)
1

Description

Currently, it isn't possible to read the referenceCount for a RiveFile. This makes it difficult to know when to call cleanup() (which can throw errors if reference counting goes negative), which is useful to do when implementing caching for RiveFile.

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

Start by locating the RiveFile reference-counting implementation and the existing referenceCount and cleanup behavior. Trace how the public API exposes RiveFile state, then verify that callers can read the current count and avoid cleanup calls that would make reference counting negative.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, wasm
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.