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

Context update does not travel from DOM to Pixi renderer #165

Closed
RodrigoHamuy opened this issue Nov 13, 2019 · 1 comment
Closed

Context update does not travel from DOM to Pixi renderer #165

RodrigoHamuy opened this issue Nov 13, 2019 · 1 comment

Comments

@RodrigoHamuy
Copy link
Contributor

Description

When you create a context outside of the Pixi Stage, its value does not update inside the Pixi Stage.

Steps to reproduce

  1. Go to https://codesandbox.io/s/react-pixi-context-example-eky26

Expected

PixiComponent should render Context value: 15.

Currently

PixiComponent renders Context value: undefined.

More info

Compare PixiComponent with PixiComponentWithMiddleContext.

PixiComponentWithMiddleContext does render the context value because it has a middleware MyPixiContext inside the stage.

Without this, any component inside Stage can't access MyContext latest value and only receives the value used when it was instantiated.

@RodrigoHamuy RodrigoHamuy changed the title Context does not travel from DOM to Pixi renderer Context update does not travel from DOM to Pixi renderer Nov 13, 2019
@inlet
Copy link
Collaborator

inlet commented Nov 13, 2019

Related to #77

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

No branches or pull requests

2 participants