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

Unable to Update Model Source With State Update #17

Open
ARUtility opened this issue Apr 16, 2020 · 0 comments
Open

Unable to Update Model Source With State Update #17

ARUtility opened this issue Apr 16, 2020 · 0 comments

Comments

@ARUtility
Copy link

ARUtility commented Apr 16, 2020

Our use case requires us to query a database for the location of a file. We update state with the returned URL and we are trying to set the src of the model with the state. For example:

< OBJModel src={this.state.filePath} texPath="" />

This does not work. Is there something I am missing here? Or is this something that would be difficult to add? The only way we can get this to work is to hardcode the url into the src path.

Thanks in advance for any help you can offer!

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

1 participant