You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've been trying to create an empty view to make use of the Window::request_animation_frame() function in it but without success
Let's assume the following basic View:
In the Editor::new_internal() function of the Zed editor I do the following: let my_view = cx.new(|_| MyView{});
Here the initial cx is a &mut Context<Editor>
After that i've tried many combinations of my_view.update(), Context<MyView>::notify() at various places I just can't get the render function to be called no matter what.
I'm guessing I'm missing a fundamental understanding of something. The examples are all one elements so they don't really demonstrate how to work with deeper element trees
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I've been trying to create an empty view to make use of the
Window::request_animation_frame()
function in it but without successLet's assume the following basic View:
In the
Editor::new_internal()
function of the Zed editor I do the following:let my_view = cx.new(|_| MyView{});
Here the initial cx is a
&mut Context<Editor>
After that i've tried many combinations of
my_view.update()
,Context<MyView>::notify()
at various places I just can't get the render function to be called no matter what.I'm guessing I'm missing a fundamental understanding of something. The examples are all one elements so they don't really demonstrate how to work with deeper element trees
Beta Was this translation helpful? Give feedback.
All reactions