Skip to content

Deprecation Warning about the next() parameter shown despite valid use-case in v5.0.3 #2647

@amxmln

Description

@amxmln

Reproduction

https://play.vuejs.org/#eNqFVFtv2jAU/itn2SRAg5iyy0OWonZVtW7apeqmvSx7MImBtIlt2Q6lQvz3Hdu50dsEuZ3r952Ld0FJcx5e6yAK8lIKZWAHqWLUsFMpYQ9LJUoYbCo2SHhroERlmGq1IfGCzsT6NjoqZej9E95GHuI1SjhAWGk29O7+uxQVN8PBS3QbjIJxULsjvtiwUhboP7eG8fpofsGKQthkL2KCn04s3QNftFGCr+ZnlVKMG48ZJDXrKCa1DnY7eOUU4bIqiktUwn7vwhAfJ+Z00wS8cii/5vwGjDhOApIE808C3+FClCwmnf5JD7pASet2ar8e+MWkyRnb3hzG+p2zWyC1Xa2OSVsYrJevZWge6eg3Vgp1d5Frg49xLfRx+52etN1s+2kJutRNUxtB3dmm7ZbQgV0raUeAbZ1pKrium6Lg+ADLcGfprT3M6DHsw9HYmjhvHcEfX6Kd7y4MyADJCYTEsfFRB37vvPqGrh+H1h0Hb/4X73scTSxtn7SdR52qXBrsQM0pY0taFVhv67dgS6E8o3NuWRkxdmUZA9qbkbdCEsxUijvZcLgpR3CMY+lVAJsyXAqB9RksqBp88GKLBu8OXUYNHd6P1bqjbwQcJ7sm7kYbb/jHHWjQ48e9zZrNG6q4V7Nmr3BZLJj93i/H4dgdNLorDmiEJKGgfIXzbzTO/n9zt6Hq5IeJ/KhNSirx1BIcUzm6Sa3ADFFTgCToptmKk2BtjNQRIRWXN6sQu046i5N34TR8QzIcsZ40ZLqcLJS41fh+jdHrUibBCRqRjG2MEIWeUJk/leKB4cn78H14RIp8QTA6yXnGti520x6kaTRuyDJf3SNpBzUvmPohTY4bdECW4mF4+8XJjKpYCzRds/TmEfm13nrIl4ohuw3rkTNUrRieVFZ9/vM7DmdPWYqsKtD6GeUV06KoLEZv9rHiGcLu2Tm0n13Pcr76pc+3hnHdkLJAuyl3jTx7hnoH9034tldFbe4KpsNU29MQj9Ux2DOzXlChMqYimMktINg8g5fT6dTtWInhcj5ZCGNEGcHRVG6dXNIsQ7CtBLMkHMPCHCi8xssFrr0LtsTjpG+5nvUzd+E7AGma9gBEMMXfrI4Q7P8BT1WRTA==

Steps to reproduce the bug

Run the example, observe the deprecation warning in the console.

Expected behavior

There should not be a warning, since the function is used as documented.

Actual behavior

There is a warning.

Additional information

The official docs mention that the only way of passing data to the component instance in a beforeRouteEnter hook is via the next callback. Is there a new (undocumented) way? Or is the deprecation warning a mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    💬 discussiontopic that requires further discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions