API suggestion: ability to get current reference count for RiveFile
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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