chore(debug): add logs for realtime feed
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
<script setup>
|
||||
import { onMounted } from 'vue'
|
||||
import { onMounted, watch } from 'vue'
|
||||
import { useRealtimeStore } from '@/stores/useRealtime'
|
||||
import RealtimeEventCard from '@/components/realtime/RealtimeEventCard.vue'
|
||||
|
||||
const realtime = useRealtimeStore()
|
||||
|
||||
watch(
|
||||
() => realtime.events.length,
|
||||
(newLen, oldLen) => {
|
||||
console.log(`📈 Feed length changed: ${oldLen} -> ${newLen}`)
|
||||
}
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
realtime.init()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user