Skip to content

Document router.push returns a promise #31337

@molebox

Description

@molebox

Discussed in #31278

Originally posted by TrueWill November 11, 2021
I'm not quite sure where to post this - is it a bug? a feature? an issue with the docs?

I turned on the no-floating-promises ESLint rule, and suddenly all of my router.push (and other router methods) were flagged. Per the typedefs it returns Promise<boolean> - but this isn't documented. The examples ignore the returned promise.

Is there a reason for this behavior?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions