Commit c60e21e
authored
🔧 Fix(Fragments/Leptos): Fix unwanted refresh and update to Leptos v0.2 (#362)
* 🔧 Fix(Fragments/Leptos): Fix unwanted refresh when clicking on the button
Basically just a `preventDefault()` :)
* 🗿 Chore(Fragments/Leptos): Update to Leptos v0.2.1
* 🗿 Chore: Create changes.md
I don't know if this is needed or not... but anyway!
* Update packages/cli/fragments/fragment-leptos/_Cargo.toml
* Update app.rs
* Update .changes/changes.md
* 🗿 Chore: Add all necessary files to the `.changes` folder
* 🛠️ Refactor(Fragments/Leptos): Remove `web-sys`
Leptos v0.2 doesn't re-export the `Event` type from the `web-sys` so in order to remove the `web-sys` we need to remove the explicit type from the `update_name` closure
---------1 parent f503937 commit c60e21e
4 files changed
Lines changed: 18 additions & 6 deletions
File tree
- .changes
- packages/cli/fragments/fragment-leptos
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
0 commit comments