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

Expose root to injected components #433

Merged

Conversation

lunarraid
Copy link
Collaborator

Description of change

This adds an options argument containing the pixi root to injected components, bringing them more in feature parity with native elements. It also moves the addition of the root object to the injected component before the applyProps call so that the initial applyProps call has access to it the same way native elements do.

Fixes: #419

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 14, 2023

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 84785ed:

Sandbox Source
sandbox Configuration

@Zyie Zyie merged commit 1335448 into pixijs:master May 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Expose root to injected components
2 participants