Skip to content

How do I create a new_view inside a component in GPUI? #7120

Closed Answered by mikayla-maki
ted-marozzi asked this question in Q&A
Discussion options

You must be logged in to vote

On each frame you're constructing a new Counter, so it never has a chance to increment before it's dropped. Try storing the counter in the Editor :)

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@mikayla-maki
Comment options

@mikayla-maki
Comment options

@ted-marozzi
Comment options

@mikayla-maki
Comment options

@ted-marozzi
Comment options

Answer selected by mikayla-maki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants