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
I want to use a library that contains structures/variables that can be used/shared accross other libraries such as TUI.
For this variables such as count would need to be primative (i.e. f32 rather than whatever the datatype use_signal(|| 0) returns. I also understand that we are using use_signal(|| 0); to allow it to get it to stick to its value without it being refreshed.
What I am asking is that I just want count to be f32 rather than whatever the data type of use_signal(|| 0); is without it being refreshed, how would I do something like this (apologies I am trying to explain the best as I can)?
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
-
Using your example as a starting point:
I want to use a library that contains structures/variables that can be used/shared accross other libraries such as TUI.
For this variables such as
count
would need to be primative (i.e.f32
rather than whatever the datatypeuse_signal(|| 0)
returns. I also understand that we are usinguse_signal(|| 0);
to allow it to get it to stick to its value without it being refreshed.What I am asking is that I just want
count
to bef32
rather than whatever the data type ofuse_signal(|| 0);
is without it being refreshed, how would I do something like this (apologies I am trying to explain the best as I can)?Beta Was this translation helpful? Give feedback.
All reactions