Closed arv closed 2 years ago
212797317a92afe88c5215fb42a03204232dcb7b added server side generated error for client not found. AKA "new phone, who dis"
When this happens we call Replicache onClientStateNotFoundError({type :'NotFoundOnServer'}
Replicache
onClientStateNotFoundError({type :'NotFoundOnServer'}
Another design direction is to have a catch all onError callback and may pass in the Error (or some constant that can be matched against)
onError
See #462 for other usages of onError.
If we use onError, it is tempting to use an Event with preventDefault where the default action is to reload when the page.
Needs some more thinking...
212797317a92afe88c5215fb42a03204232dcb7b added server side generated error for client not found. AKA "new phone, who dis"
When this happens we call
Replicache
onClientStateNotFoundError({type :'NotFoundOnServer'}
Another design direction is to have a catch all
onError
callback and may pass in the Error (or some constant that can be matched against)See #462 for other usages of onError.
If we use onError, it is tempting to use an Event with preventDefault where the default action is to reload when the page.
Needs some more thinking...