You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've also prepared a codesandbox that throws this error. Note that you'll want to open the preview in a new tab because the codesandbox preview frame causes extra unrelated errors.
@RJWadley thanks for catching this, I exclusivly have been using useSuspenseAssets with suspense, and never thought to run useAssets through a suspense test...
With React 19 out officially, I think we need to take a pass on simplifying the hooks and leaning on the new use hook. I don't beleive there needs to be a difference between the two hooks anymore.
Current Behavior
if the render is suspended after useAssets is called but before the image finishes loading, we get an error:
Expected Behavior
useAssets should not cause errors if rendering is suspended
Steps to Reproduce
the easiest way to reproduce this is to create a component that suspends:
I've also prepared a codesandbox that throws this error. Note that you'll want to open the preview in a new tab because the codesandbox preview frame causes extra unrelated errors.
Environment
@pixi/react
version: 8.0.0-beta.21pixi.js
version: 8.6.6React
version: 19.0.0ReactDOM
version: 19.0.0Possible Solution
Additional Information
No response
The text was updated successfully, but these errors were encountered: