firebase / firebase-tools-ui

A local-first UI for Firebase Emulator Suite.
https://firebase.googleblog.com/2020/05/local-firebase-emulator-ui.html
Apache License 2.0
269 stars 61 forks source link

Can't display field filter anymore #387

Closed voltuer closed 3 years ago

voltuer commented 3 years ago

[REQUIRED] Environment info

firebase-tools: 8.13.1

Platform: Linux on Docker (WSL 2)

[REQUIRED] Test case

I'm trying to accomplish something that has been possible in both the cloud version and the emulator version of Firestore: show filtered parameter on each document of a collection:

Works fine on the cloud version: firestore-online

Stopped working on local version: firestore-local

[REQUIRED] Steps to reproduce

Run the emmulator, create a collection and a couple documents, try fo filter by any parameter

[REQUIRED] Expected behavior

Should have the same behavior as the cloud version, and show the filtered parameter

[REQUIRED] Actual behavior

Doesn't

samtstern commented 3 years ago

Moving this issue to firebase-tools-ui since it's about the Emulator UI

voltuer commented 3 years ago

i'd like to think people at firebase cares

yuchenshi commented 3 years ago

Thanks for the bug report! After hours of digging, this looks like a bug in React (or more precisely speaking, React legacy mode + Suspense) and I've hot fixed it for now. A release is coming out soon.


Note to the team: A proper fix would be switching to React DOM experimental blocking / concurrent mode.