fix: Double trigger of loadLiquidityStats on initial mount (#361)
Remove redundant onMounted call that fired loadLiquidityStats() a second
time. The watch() with { immediate: true } already handles the initial
load and all subsequent dependency changes, making onMounted redundant.
Also remove now-unused onMounted import.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5d1c715799
commit
5623768025
1 changed files with 1 additions and 7 deletions
|
|
@ -128,7 +128,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import FButton from '@/components/fcomponents/FButton.vue';
|
||||
import FCard from '@/components/fcomponents/FCard.vue';
|
||||
import FInput from '@/components/fcomponents/FInput.vue';
|
||||
|
|
@ -270,12 +270,6 @@ watch(
|
|||
{ immediate: true }
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
if (!liquidityStats.value && !statsLoading.value) {
|
||||
void loadLiquidityStats();
|
||||
}
|
||||
});
|
||||
|
||||
function resolveChainName(chainId: number): string {
|
||||
switch (chainId) {
|
||||
case 31337:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue