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

Add SignalGet SignalWith SignalUpdate traits #558

Merged
merged 3 commits into from
Aug 21, 2024
Merged

Add SignalGet SignalWith SignalUpdate traits #558

merged 3 commits into from
Aug 21, 2024

Conversation

dzhou121
Copy link
Contributor

@dzhou121 dzhou121 commented Aug 21, 2024

  1. Add SignalGet SignalWith SignalUpdate traits
  2. There's new read() and write() on signals which will give you a RefCell wrapped original data, which means you can do borrow() if you don't want to clone with get() and don't like the closure of with
  3. Add a new BaseSignal which is an additional way for the management of signal lifetime. Simply put, when a BaseSignal drops, the underlying signal is disposed as well. It's useful if you have states outside the view trees. Previously you'd need to create a Scope and explicitly run dispose() for the Scope to dispose signals.

@dzhou121 dzhou121 merged commit ba6ca44 into main Aug 21, 2024
7 checks passed
@dzhou121 dzhou121 deleted the new_signal branch August 21, 2024 20:03
jrmoulton pushed a commit to jrmoulton/floem that referenced this pull request Sep 9, 2024
* Add SignalGet SignalWith SignalUpdate traits

* fix doc

* fix Linux
jrmoulton added a commit to jrmoulton/floem that referenced this pull request Sep 9, 2024
vello w/ gradients and brush override

vello chnages. before parley

attempt parley

Revert "attempt parley"

This reverts commit 851ae9d8067e1ec570bed4fa865980f6b10ba33b.

wip

updates

wip

wip

wip

new vello

fixed lapce#554 (lapce#555)

- fixed tab navigation wrapping the tab button
- fixed lapce#554

Add SignalGet SignalWith SignalUpdate traits (lapce#558)

* Add SignalGet SignalWith SignalUpdate traits

* fix doc

* fix Linux

make SignalUpdate non panic

Add initial wasm support (lapce#527)

* Add initial wasm support

* Bump web-time version

* Run cargo fmt

* Fix webgpu example

* Fix clippy warning

* Switch to latest floem-winit commit

* Fix conditional import in keyboard.rs

* Fix webgpu example

* Automatically follow canvas size by default

* Remove unused import

* Remove unused import

* Use latest floem-vger from git

add get/update from fn (lapce#559)

* add get/update from fn

* update radio buttons and example

* Add stack ext trait

* update dropdown

* change custom constructors return self to allow custom styles

* fix flight booker

* fix other examples

* better support for simple closure input

* fix clippy

rename SignalWith track method (lapce#562)

* rename SignalWith track method

* add SignalTrack trait

Keyframe Animations (lapce#563)

* add keyframed animations

* Make animations reactive and stackable

* remove old files

* fix bezier

* add reactive animation state control

* remove animation message comment

* improve easing

* clippy

* add delay

* Fix transition on layout props

* Fix animate towards default

* fix animation view state

* fix animation view state again

* fix clippy

* remove old comment

* fix clippy 2
jrmoulton added a commit to jrmoulton/floem that referenced this pull request Sep 9, 2024
vello w/ gradients and brush override

vello chnages. before parley

attempt parley

Revert "attempt parley"

This reverts commit 851ae9d8067e1ec570bed4fa865980f6b10ba33b.

wip

updates

wip

wip

wip

new vello

fixed lapce#554 (lapce#555)

- fixed tab navigation wrapping the tab button
- fixed lapce#554

Add SignalGet SignalWith SignalUpdate traits (lapce#558)

* Add SignalGet SignalWith SignalUpdate traits

* fix doc

* fix Linux

make SignalUpdate non panic

Add initial wasm support (lapce#527)

* Add initial wasm support

* Bump web-time version

* Run cargo fmt

* Fix webgpu example

* Fix clippy warning

* Switch to latest floem-winit commit

* Fix conditional import in keyboard.rs

* Fix webgpu example

* Automatically follow canvas size by default

* Remove unused import

* Remove unused import

* Use latest floem-vger from git

add get/update from fn (lapce#559)

* add get/update from fn

* update radio buttons and example

* Add stack ext trait

* update dropdown

* change custom constructors return self to allow custom styles

* fix flight booker

* fix other examples

* better support for simple closure input

* fix clippy

rename SignalWith track method (lapce#562)

* rename SignalWith track method

* add SignalTrack trait

Keyframe Animations (lapce#563)

* add keyframed animations

* Make animations reactive and stackable

* remove old files

* fix bezier

* add reactive animation state control

* remove animation message comment

* improve easing

* clippy

* add delay

* Fix transition on layout props

* Fix animate towards default

* fix animation view state

* fix animation view state again

* fix clippy

* remove old comment

* fix clippy 2
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

Successfully merging this pull request may close these issues.

1 participant