#can optimisticUpdate be use in production ? any repo example ?

13 messages · Page 1 of 1 (latest)

upper steeple
#

I need to use optimistic update in convex.

tribal haven
#

@upper steeple Also this is a beta feature so it can be changed in the future

upper steeple
tribal haven
upper steeple
tribal haven
# upper steeple I see thanks 🙏 Do you think it’s better to me to use this beta feature ? Or an...

I think the best is to use this beta feature because the convex support is so good that it fixes your problem instantly. so you will encounter more problems with this beta feature but bug fixes etc. are coming very fast after you reported them.

  • If you give more feedback it will get stable much faster and you can be a part of deciding how this feature will look like. if it's out of beta it will be harder to change this API
stark sedge
#

The beta label doesn’t mean that the feature is buggy (it’s been unchanged and working well for over a year), it’s there because we might evolve the API which might require code changes for you to upgrade in the future.

velvet dock
#

Data point: I've been using optimistic updates for over six months and haven't yet encountered a bug.

upper steeple
#

Thanks guys 🙏 @tribal haven @stark sedge @velvet dock

will try to explore.

#

this optimisticUpdate I just need to update the localStore right ? and the refresh will handle by the mutation ?

velvet dock
#

My loose understanding is that an optimistic update synchronously results in a temporary update for any setQuery() calls, and is overwritten when the data updates upon mutation resolution.

velvet dock
#

(so yes)