DEV Community

Discussion on: Displaying Real-Time Views using React, Gatsby and Firebase

Collapse
 
dodanghien23693 profile image
Đỗ Đăng Hiển

This is very helpful for me. Thank you a lot.
I find that we can improve it further in case we want to show ViewCount in multiple places and only Increase its counter when the detail page is loaded.
By that ViewCounter only return the current ViewCount.

Collapse
 
flashblaze profile image
Neeraj Lagwankar

I'm glad you liked my post. And yes, I think that could be done.