Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send app state to context #515

Merged

Conversation

trezy
Copy link
Collaborator

@trezy trezy commented Jul 31, 2024

Description of change

We're now tracking isInitialised in Pixi React's application state. We're then using this in useTick to ensure the callback gets setup once the application is initialised. This solves #506, which was being caused by the application not being initialised the first time useTick runs in an SSR environment, then being initialised after a hot module reload.

Fixes: #506

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

@trezy trezy added bug Something isn't working enhancement New feature or request v8 Issues related to Pixi React v8 labels Jul 31, 2024
@trezy trezy self-assigned this Jul 31, 2024
@trezy trezy force-pushed the 506-bug-usetick-not-ticking-on-initial-load-during-vite-dev branch from db12ea6 to 1b1c7b9 Compare July 31, 2024 16:41
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0987eba:

Sandbox Source
pixi.js-sandbox Configuration

@trezy trezy merged commit f149527 into beta Jul 31, 2024
4 checks passed
@trezy trezy deleted the 506-bug-usetick-not-ticking-on-initial-load-during-vite-dev branch July 31, 2024 20:13
Copy link

🎉 This issue has been resolved in version 8.0.0-beta.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request released on @beta v8 Issues related to Pixi React v8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant