-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Optimise pool page queries (#3634)
* refactor: Use single layout for any page with pool id in route * chore: Use pool provider for pool page * chore: Prevent refetch on focus & don't wait for token injection * refactor: Wait for vebal injection before enabling queries
- Loading branch information
1 parent
18ec2d2
commit 1d88db8
Showing
10 changed files
with
96 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script setup lang="ts"> | ||
import Footer from '@/components/footer/Footer.vue'; | ||
import AppNav from '@/components/navs/AppNav/AppNav.vue'; | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="app-body"> | ||
<AppNav /> | ||
<div class="pb-16"> | ||
<slot /> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.VueQueryDevtoolsPanel + button { | ||
@apply text-black bg-gray-100 p-2 rounded text-sm; | ||
} | ||
.app-body { | ||
@apply mb-8; | ||
min-height: calc(100vh - 2rem); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
<script setup lang="ts"> | ||
import Footer from '@/components/footer/Footer.vue'; | ||
import AppNav from '@/components/navs/AppNav/AppNav.vue'; | ||
import DefaultLayout from '@/components/layouts/DefaultLayout.vue'; | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="app-body"> | ||
<AppNav /> | ||
<div class="pb-16"> | ||
<router-view v-slot="{ Component }" :key="$route.path"> | ||
<transition appear name="appear"> | ||
<component :is="Component" /> | ||
</transition> | ||
</router-view> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
<DefaultLayout> | ||
<router-view v-slot="{ Component }" :key="$route.path"> | ||
<transition appear name="appear"> | ||
<component :is="Component" /> | ||
</transition> | ||
</router-view> | ||
</DefaultLayout> | ||
</template> | ||
|
||
<style> | ||
.VueQueryDevtoolsPanel + button { | ||
@apply text-black bg-gray-100 p-2 rounded text-sm; | ||
} | ||
.app-body { | ||
@apply mb-8; | ||
min-height: calc(100vh - 2rem); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1d88db8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
beta-app-v2 – ./
beta-app-v2-git-develop-balancer.vercel.app
beta-app-v2.vercel.app
beta-app-v2-balancer.vercel.app
beta.balancer.fi