Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Props params passing with keep-alive #2396

Closed
defusioner opened this issue Sep 18, 2018 · 1 comment
Closed

Props params passing with keep-alive #2396

defusioner opened this issue Sep 18, 2018 · 1 comment

Comments

@defusioner
Copy link

defusioner commented Sep 18, 2018

Version

2.8.1 & 3.0.1

Reproduction link

https://codesandbox.io/s/mo5x4nlq7p

Steps to reproduce

  • Open console
  • Go to dog, then to home

What is expected?

Every route is in keep-alive, so dog should be kept alive with its name=dog

What is actually happening?

In console we see: missing required prop: "name".
For this demo it is almost transparent, but in a real project I've faced a problem that the component that is dependent of the incoming parameter won't be rendered (as it uses apollo and computed properties binded on that parameter).


P.S. Without keep-alive it's ok

@defusioner
Copy link
Author

defusioner commented Sep 18, 2018

Duplicates #2301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant