chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.27k stars 84 forks source link

Add render fn to percy-dom #173

Closed chinedufn closed 2 years ago

chinedufn commented 2 years ago

This commit adds a function to percy-dom that can be used to create a request-animation-frame throttled renderer.

This is helpful for powering experiences where you want to rerender an application everytime application state changes.