nested props are marked as missing when changing route and using keep-alive #2301
Closed
Description
Version
3.0.1
Reproduction link
https://jsfiddle.net/Terrijoo/pntLxf20/
Steps to reproduce
- open console
- click
/home
- click
Info
- click
/foo
- 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:
router-view
needs to be wrapped bykeep-alive
- props needs to be required on the component
- prop needs to be on the children, it does work on the parent:
- click
/home
- click
/foo
- no error/warning