onDocumentUpdated method

JSFunction onDocumentUpdated(
  1. JSAny documentOrOpts,
  2. JSFunction handler
)

Event handler that triggers when a document is updated in Firestore.

@param documentOrOpts - Options or a string document path. @param handler - Event handler which is run every time a Firestore update occurs.

Implementation

external JSFunction onDocumentUpdated(
  JSAny documentOrOpts,
  JSFunction handler,
);