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
{{ message }}
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
When documents are persisted, having the ability to specify a callback that is called on failure to persist a particular document would be immensely helpful.
This would allow developers to manage the conflicts automatically using code; or by providing users feedback of the conflict and letting them manage it.
When documents are persisted, having the ability to specify a callback that is called on failure to persist a particular document would be immensely helpful.
This would allow developers to manage the conflicts automatically using code; or by providing users feedback of the conflict and letting them manage it.
Is there a reason why this should be an event rather than something that can be injected on persist?
If an even manager is used then distinguishing the event for a particular document (especially when there may not be an identifier) could be difficult.
Perhaps I could implement something that emits both a generic event and also allows you to define a callback specific to a document?
When documents are persisted, having the ability to specify a callback that is called on failure to persist a particular document would be immensely helpful.
This would allow developers to manage the conflicts automatically using code; or by providing users feedback of the conflict and letting them manage it.
I propose something like the following:
If this were implemented as an optional parameter this would remain compatible with code using the existing api.
My question is: Were I to implement this feature and send a PR, would it be accepted?
The text was updated successfully, but these errors were encountered: