Skip to content

nested props are marked as missing when changing route and using keep-alive #2301

Closed
@Terrijoo

Description

Version

3.0.1

Reproduction link

https://jsfiddle.net/Terrijoo/pntLxf20/

Steps to reproduce

  1. open console
  2. click /home
  3. click Info
  4. click /foo
  5. look into console

What is expected?

The props still being "there" and no warning about the missing required prop.

What is actually happening?

The props are apparently removed/emptied and vue throws a warning.


It's a combination of several circumstances:

  1. router-view needs to be wrapped by keep-alive
  2. props needs to be required on the component
  3. prop needs to be on the children, it does work on the parent:
  • click /home
  • click /foo
  • no error/warning

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions