Skip to content

feat: Support indeterminate option in BProgress.start() #169

@programming-with-ia

Description

@programming-with-ia

Feature Description

Description:

Add support for configuring the indeterminate state via:

BProgress.start(indeterminate?: boolean)

Use Cases

Sometimes we need both determinate (default) and indeterminate loaders, depending on whether the loading time is known or not. A boolean flag makes it easy to switch between them.

// Default determinate loader
BProgress.start();

// Indeterminate loader (e.g. unknown duration)
BProgress.start(true);

Package

@bprogress/core

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions