Skip to content

Conversation

@mfazekas
Copy link
Collaborator

@mfazekas mfazekas commented Dec 18, 2025

  • Use useViewModelInstance(riveViewRef) instead of manual useMemo
  • Use onInit callback for initial health value instead of useEffect
  • Use functional updater setHealth((h) => (h ?? 0) - 7) in handleTakeDamage

@mfazekas mfazekas force-pushed the mfazekas/streamline-quickstart branch from 8e50a37 to 6b30587 Compare December 18, 2025 07:30
@mfazekas mfazekas force-pushed the mfazekas/streamline-quickstart branch from 6b30587 to c39c352 Compare December 18, 2025 08:30
@mfazekas mfazekas changed the title refactor: streamline QuickStart example refactor: streamline QuickStart example with 0.1.2 changes Dec 18, 2025
@mfazekas mfazekas marked this pull request as ready for review December 18, 2025 08:32
@mfazekas mfazekas enabled auto-merge (squash) December 18, 2025 08:33
@mfazekas mfazekas requested a review from HayesGordon December 18, 2025 08:34
Copy link
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mfazekas mfazekas merged commit 6052279 into main Dec 18, 2025
7 checks passed
@mfazekas mfazekas deleted the mfazekas/streamline-quickstart branch December 18, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants