You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This time it works! Data has been synced to firebase.
Since there is some data in firebase, I used Option A again, and it works nicely.
I kind of solved the problem. But I was wondering why it happens, why Option A did not work the first time?
Thanks!
(PS: Still have some issues, when it renders twice, holder.js does not work. But it is unrelated to this issue. )
The text was updated successfully, but these errors were encountered:
Some context: I have a sample-projects.js file, I imported as
import sampleProjects from '../assets/sample-projects';
I tried to load the data and sync with firebase when opening the webpage, so I wrote
Option A
But nothing happened. Firebase is empty. And the webpage did not load anything. I checked
state
is empty too.Then I tried:
Option B
The webpage rendered twice, first time
state
is normal, second it becomes empty. Firebase is empty too.So I tried:
Option C
This time it works! Data has been synced to firebase.
Since there is some data in firebase, I used Option A again, and it works nicely.
I kind of solved the problem. But I was wondering why it happens, why Option A did not work the first time?
Thanks!
(PS: Still have some issues, when it renders twice, holder.js does not work. But it is unrelated to this issue. )
The text was updated successfully, but these errors were encountered: