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
Hey @IjzerenHein, I've been investigating this package and it seems like a great fit for our project!
One thing that has me concerned, though. Your example apps call update in onChangeText, which means the firebase update will be called for essentially every key press? Seems this could get expensive in text-heavy applications..
Am I understanding this correctly? I would love to see some sort of deferred update which changes the observable values, and with a subsequent flush to persist the changes to Firestore, called at some later point (i.e. blur). But I didn't want to dive into something like this if you had a different approach in mind.. (perhaps with #53?)
The text was updated successfully, but these errors were encountered:
zeevl
changed the title
Using update in onTextChange
Using update in onTextChange
Mar 14, 2020
Hi! Well that's just an example, and it showcases how easy it can be to write some real-time updating code. I can very much imagine that you don't want to send an update action for every key-stroke though. In such a case I would just store the content in the state of your component and perhaps send it on accept or unmount. This is something that you would need to do yourself, or perhaps write an abstraction that handles this for you.
Hey @IjzerenHein, I've been investigating this package and it seems like a great fit for our project!
One thing that has me concerned, though. Your example apps call
update
inonChangeText
, which means the firebaseupdate
will be called for essentially every key press? Seems this could get expensive in text-heavy applications..Am I understanding this correctly? I would love to see some sort of deferred
update
which changes theobservable
values, and with a subsequentflush
to persist the changes to Firestore, called at some later point (i.e. blur). But I didn't want to dive into something like this if you had a different approach in mind.. (perhaps with #53?)The text was updated successfully, but these errors were encountered: