Commit 839e114
authored
fix(router): decode path for storing elements and slug as prop (#1304)
Let me know if this approach is ok. The change makes it so that id's
internally for routes are always decoded. This makes it so the prop is
decoded when it is passed. It also fixes the runtime error. The runtime
error happened when the id as being looked up in elements as decoded,
but internally stored as encoded, so our invalid element id error was
thrown.
fixes #1302
---------
Co-authored-by: Tyler <[email protected]>1 parent 2cd6b1b commit 839e114
File tree
3 files changed
+11
-3
lines changed- e2e
- packages/waku/src/router
3 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | | - | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
0 commit comments