Need help rendering a dynamic width/height in a React app

Hey all! I’ve got a Rive animation where the artboard is setup as hug x hug based on the layout content of the children. In the Rive editor itself, everything fits/scales correctly, the issue I’m running into is specifically related to implementing the runtime in the browser in a React/NextJS build.

The issue I’m struggling with is correctly rendering the Rive file with the correct width and height values for the component. No matter what I do, Rive seems to pass back 0×0 for the min values of the bounds and 500×500 for the max (the defaults) for the artboard. I feel like getting the actual bounds of the artboard returned in some value should be possible but I’m struggling to find that solution in the docs. Any direction or tips regarding this? Would love to adopt Rive in more of builds but hitting a blocker with how to correctly implement this. Many thanks!