Javascript – Vue3 – value of wrong store ref is being changed?
Here's the store: import { ref } from "vue"; // Store for all data export const countriesData = ref(); export const isLoading = ref(true); async function getData() { try { isLoading.value = true; const response = await fetch("https://restcountries.com/v3.1/all"); const data…