The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > LoadBundleTask > onProgress

LoadBundleTask.onProgress() method

Registers functions to listen to bundle loading progress events.

Signature:

onProgress(next?: (progress: LoadBundleTaskProgress) => unknown, error?: (err: Error) => unknown, complete?: () => void): void;

Parameters

Parameter Type Description
next (progress: LoadBundleTaskProgress) => unknown Called when there is a progress update from bundle loading. Typically next calls occur each time a Firestore document is loaded from the bundle.
error (err: Error) => unknown Called when an error occurs during bundle loading. The task aborts after reporting the error, and there should be no more updates after this.
complete () => void Called when the loading task is complete.

Returns:

void