Is it a good approach to use firebase once method when retrieving all posts on ionViewWillEnter?

Is it a good approach to use firebase once method when retrieving all posts on ionViewWillEnter?

I am retrieving all posts (news) from firebase using the once method and showing it on the home tab (the first tab when the app is launched) :

I am retrieving all posts (news) from firebase using the once method and showing it on the home tab (the first tab when the app is launched) :

get_all_posts(){

this.posts = []; firebase.database().ref('/posts/').once('value').then(snapshot => { .... //rest of the code } }

This will be fired in the ionViewWillEnter():

ionViewWillEnter(){
   this.get_all_posts();
}

In this case, get_all_posts method will be fired everytime the "home" tab is pressed right? which will get all posts again from the DB or for the entire session (from opening the app till closing the app running on the phone)the news retrieved from the first time only will be displayed?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Push Notifications with Ionic 4 and Firebase Cloud Messaging

Learn how to create and send push notifications from Firebase Cloud Messaging to Ionic app. We will use Ionic 4 Cordova native FCM plugin to receive push notification in an Ionic 4 app. Learn how to send push notifications from Firebase and receive notification in an Ionic app.

Push Notification using Ionic 5 and Firebase Cloud Messaging

The step by step tutorial on receiving a push notification on Mobile App using Ionic 5 and Firebase Cloud Messaging (FCM). Learn how to create and send push notifications from Firebase Cloud Messaging to Ionic app. We will use Ionic 5 Cordova native FCM plugin to receive push notification in an Ionic app.

How to set up Firebase Realtime Database in Ionic 4 and Angular 8 App?

In this Ionic 4 Firebase tutorial, you'll learn step by step how to set up Firebase Realtime Database in Ionic 4 and Angular 8 App. Firebase is a popularly known Google product and Its a NoSQL Realtime Database.