Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Firebase snapshot from import module

$
0
0

Not sure if that subject even makes sense. So I’ve moved all my Firebase methods into a TypeScript file /src/hooks/firebase.ts based on a few examples I’ve seen from @aaronksaunders.

Now the rest of my code is still Vue 2 looking even though I’m riding on Vue 3 (not using the composition API as the code is more complex that way). What I am looking to do is update some parts of the UI when a Firebase snapshot live updates inside the method getDeviceInfo which is inside the firebase.ts file. Is that even possible?

import useFirebase from '../hooks/firebase';
const {getDeviceInfo} = useFirebase();

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>