我目前正在关注Robin Wieruch的“与Firebase反应的道路”一书。我遇到的问题是,当我刷新一个从Context API消费的页面时,来自Firebase的authUser变成了空。 这是我的app.js import Navigation from './Navigation';
import LandingPage from './Landing';
import AccountPage from './Account';
import withAuthentication from './withAuthenticat
./App.js
import React from "react";
import ReactDOM from "react-dom";
import { Provider } from './context.js';
import { Provider as Provider2 } from './context2.js';
import Child from './Child.js';
import "./styles.css";
class App extends React.Compo