Skip to content

Commit

Permalink
Effect -> Disposer
Browse files Browse the repository at this point in the history
  • Loading branch information
flisky committed Aug 23, 2023
1 parent c9f0bd3 commit 739e334
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion leptos_reactive/src/effect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ pub struct Effect {

impl SignalDispose for Effect {
fn dispose(self) {
drop(Disposer(self.id));
drop(Disposer::from(self));
}
}

impl From<Effect> for Disposer {
fn from(effect: Effect) -> Self {
Disposer(effect.id)
}
}

Expand Down

0 comments on commit 739e334

Please sign in to comment.