mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
c9381abe26
3 changed files with 4 additions and 6 deletions
2
.github/workflows/book.yml
vendored
2
.github/workflows/book.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
||||||
- name: Install mdbook II
|
- name: Install mdbook II
|
||||||
run: |
|
run: |
|
||||||
cargo binstall -y mdbook-cmdrun
|
cargo binstall -y mdbook-cmdrun
|
||||||
cargo binstall -y trunk
|
cargo binstall -y trunk@0.17.5
|
||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
id: pages
|
id: pages
|
||||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -46,7 +46,7 @@ jobs:
|
||||||
- name: Install mdbook II
|
- name: Install mdbook II
|
||||||
run: |
|
run: |
|
||||||
cargo binstall -y mdbook-cmdrun
|
cargo binstall -y mdbook-cmdrun
|
||||||
cargo binstall -y trunk
|
cargo binstall -y trunk@0.17.5
|
||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
id: pages
|
id: pages
|
||||||
|
|
|
@ -103,8 +103,6 @@ where
|
||||||
};
|
};
|
||||||
|
|
||||||
let close = {
|
let close = {
|
||||||
let channel = channel.clone();
|
|
||||||
|
|
||||||
move || {
|
move || {
|
||||||
if let Some(channel) = channel.get_untracked() {
|
if let Some(channel) = channel.get_untracked() {
|
||||||
channel.close();
|
channel.close();
|
||||||
|
@ -153,7 +151,7 @@ where
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
|
|
||||||
return UseBroadcastChannelReturn {
|
UseBroadcastChannelReturn {
|
||||||
is_supported,
|
is_supported,
|
||||||
channel: channel.into(),
|
channel: channel.into(),
|
||||||
message: message.into(),
|
message: message.into(),
|
||||||
|
@ -161,7 +159,7 @@ where
|
||||||
close,
|
close,
|
||||||
error: error.into(),
|
error: error.into(),
|
||||||
is_closed: is_closed.into(),
|
is_closed: is_closed.into(),
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return type of [`use_broadcast_channel`].
|
/// Return type of [`use_broadcast_channel`].
|
||||||
|
|
Loading…
Add table
Reference in a new issue