Merge pull request #17542 from ShirasawaSama/patch-23
feat: do not initiate requests when the ChangelogModal is not open to speed up page loading
This commit is contained in:
1 file changed
+5
-4
@@ -19,10 +19,11 @@
|
|||||||
|
|
||||||
let changelog = null;
|
let changelog = null;
|
||||||
|
|
||||||
onMount(async () => {
|
const init = async () => {
|
||||||
const res = await getChangelog();
|
changelog = await getChangelog();
|
||||||
changelog = res;
|
};
|
||||||
});
|
|
||||||
|
$: show && init();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal bind:show size="xl">
|
<Modal bind:show size="xl">
|
||||||
|
|||||||
Reference in new issue
Block a user