Commit 083e17f
committed
fix: compute license changes in page
If we compute the license change in the warning component, it is
possible the fetch resolves _after_ SSR completes it seems. So this
means the result is null and no notice is shown (via SSR).
When you later navigate to a version, the client does an actual fetch
and the notice is now shown.
To fix this, I've moved the license change call to the page which is how
all other composables in this page work. The license warning component
then just consumes the change data.1 parent e1a28da commit 083e17f
File tree
4 files changed
+10
-18
lines changed- app
- components
- composables
- pages/package/[[org]]
- test/nuxt
4 files changed
+10
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 7 | | |
17 | 8 | | |
18 | 9 | | |
19 | 10 | | |
20 | | - | |
| 11 | + | |
21 | 12 | | |
22 | 13 | | |
23 | 14 | | |
| |||
32 | 23 | | |
33 | 24 | | |
34 | 25 | | |
35 | | - | |
36 | | - | |
| 26 | + | |
| 27 | + | |
37 | 28 | | |
38 | 29 | | |
39 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
906 | 907 | | |
907 | 908 | | |
908 | 909 | | |
909 | | - | |
| 910 | + | |
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
| 394 | + | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
| |||
0 commit comments