What is the purpose of using Nextjs if you are still going to fetch data using client side libraries. Your above application will not be a SSR compatible.
Hello! I have to say this really helped me with connecting to my database but I'm lost on how could I do that it wouldn't print every user but only information about the user logged in. I'm working on a nextjs project to school and I need to create like a page where the user would see their profile and add settings page where they could edit it. Any tips how to do it or any videos with which I could do it?
tell me once you fetch data on one server side component from firebase then onSnapshot if you want to show user updated data how do you do that. how you could update the component which were initially render as server component.
I understand that you want to keep the data displayed on the page up-to-date. There are a couple of ways to achieve this. One way is to have the page refresh automatically every 30 seconds, which will fetch the latest data from the server. However, this can be inefficient and may slow down your app due to unnecessary requests. A more efficient approach is to use WebSockets, which establish a persistent connection between the server and the client, allowing for real-time data updates without the need for constant page refreshes.
@@BugNinza thanks for consideration but my question was little bit different, we cannot perform fetch or axios in case to fetch data from firestore and realtime db and when firebase is providing its own socket there is no need of WEB Sockets and even you cannot use it in this specific case (correct me if i am wrong, highly appreciable )
@@BugNinza what we do in firebase case. once we run query and get docs and displayed them. now on client side if we get update upon firebase socket onSnapshot how can we update them.
Man thank you so much. This is changing so fast, everyone was posting different thing, this worked totally, thank you...
Happy Coding 😁
@@BugNinza Thanks man!
thank bro , i get this video after 3hr of searching this content , helps alot
Keep supporting 🙌🏻
Thanks man, I don't know why you don't get that much likes, but for real this is some great content! You earned yourself a new sub!
Thank you. Keep supporting 🙌
you saved my monitor!!! I was just about to punch through
You owe me a coffee then 😂
Thanks bro, other videos didn't work on the newest firebase version but this one did very well. Thanks again!
👋 thank you.. keep supporting 🙌
Thank you so much, this was exactly what I needed!
Happy Coding 🎉
thank you soo much it really helped
Keep supporting 🙌🏻
What is the purpose of using Nextjs if you are still going to fetch data using client side libraries. Your above application will not be a SSR compatible.
Correct! you raised a valid point. I'll update it in my upcoming videos. Thanks
What theme are you using on VS Code? It look really cool!
On client side component i cant fetch data it shows empty array but on server side it fetches without problem, any ideas?
Hello! I have to say this really helped me with connecting to my database but I'm lost on how could I do that it wouldn't print every user but only information about the user logged in. I'm working on a nextjs project to school and I need to create like a page where the user would see their profile and add settings page where they could edit it. Any tips how to do it or any videos with which I could do it?
it helped thanks
Glad it helped!! Keep supporting
tell me once you fetch data on one server side component from firebase then onSnapshot if you want to show user updated data how do you do that. how you could update the component which were initially render as server component.
I understand that you want to keep the data displayed on the page up-to-date. There are a couple of ways to achieve this. One way is to have the page refresh automatically every 30 seconds, which will fetch the latest data from the server. However, this can be inefficient and may slow down your app due to unnecessary requests. A more efficient approach is to use WebSockets, which establish a persistent connection between the server and the client, allowing for real-time data updates without the need for constant page refreshes.
@@BugNinza thanks for consideration but my question was little bit different, we cannot perform fetch or axios in case to fetch data from firestore and realtime db and when firebase is providing its own socket there is no need of WEB Sockets and even you cannot use it in this specific case (correct me if i am wrong, highly appreciable )
@@BugNinza what we do in firebase case. once we run query and get docs and displayed them. now on client side if we get update upon firebase socket onSnapshot how can we update them.
Have the same concern
@@blankspace6342 i got solution but not 100%
Can you do this with React Native Expo? This would help me a lot, I'm from Brazil and I follow your videos a lot
Check this out: th-cam.com/video/evS7V2M1xq4/w-d-xo.html