Skip to content

Commit

Permalink
test: remove use of ref
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielforster committed Jan 24, 2024
1 parent 72ce8ea commit 9ce90aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ const name = ref('')
const description = ref('')
const googleMapsUrl = ref('')
const fetchDataInterval = ref(null)
const fetchDataInterval = null
onMounted(() => {
fetchData()
fetchDataInterval.value = setInterval(() => {
fetchDataInterval = setInterval(() => {
console.log('fetching data...')
fetchData()
}, 1000 * 60)
})
onBeforeUnmount(() => {
clearInterval(fetchDataInterval.value)
clearInterval(fetchDataInterval)
})
async function registerPlace() {
Expand Down

0 comments on commit 9ce90aa

Please sign in to comment.