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?
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 returnsPromise<boolean>- but this isn't documented. The examples ignore the returned promise.Is there a reason for this behavior?