我想使用一个嵌套的监听器结构,如下所示: snapshotListeners() {
firestore()
.collectionGroup()
.where()
.onSnapshot({
error: //Handle error
next: firstSnapshot => {
firstSnapshot.docsChanges().forEach(change => {
//Data retrieved and used in the below query to get mor
我目前正在运行2台服务器:
使用react服务视图,该视图从用express构建的REST中检索数据。
为视图提供REST。
下面是我登录用户的操作:
// Redux Action
export function loginUser(creds, role) {
return dispatch => {
// We dispatch requestLogin to kickoff the call to the API
dispatch(requestLogin(creds));
return axios.post(`${ROOT_URL