pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.25k stars 173 forks source link

Bug: cannot access loader from useApp #436

Closed pikooli closed 1 year ago

pikooli commented 1 year ago

Current Behavior

Hello :)

Cannot access to loader from useApp().

Expected Behavior

Have loader on the object returned by useApp()

Steps to Reproduce

Can try to put this code with a newer version of reactPixi

https://codepen.io/inlet/pen/wvWRLGL

Environment

Possible Solution

No response

Additional Information

Capture d’écran 2023-05-20 à 15 30 21
pikooli commented 1 year ago

Okiii someone told me it was normal in pixi 7 and I should use Asserts

https://pixijs.io/guides/basics/assets.html