-
Notifications
You must be signed in to change notification settings - Fork 21
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
Keep-alive - activated does not seem to be triggered #10
Comments
please send a sample project or show more source code so I can understand what you are trying to do. There are no dynamic components so keep-alive wont work |
Sure. Thanks for the prompt reply: App.vue
CameraPage.vue
the activated component doesn't seem to work with the ion-vue-router, however when I created another app using vue cli, I can see that activated works just fine with regular vue-router when I have
Please advise, thanks again |
Keep-alive only works with dynamic components according to the
documentation. What are you trying to accomplish?
On Fri, Jul 24, 2020 at 9:57 PM Joe Saad ***@***.***> wrote:
Sure. Thanks for the prompt reply:
I have used this same repo with the following changes:
*App.vue*
<keep-alive>
<ion-vue-router />
</keep-alive>
*CameraPage.vue*
methods: {},
activated(){
console.log('Component activated')
}
the activated component doesn't seem to work with the ion-vue-router,
however when I created another app using vue cli, I can see that activated
works just fine with regular vue-router when I have
<keep-alive>
<router-view/>
</keep-alive>
Please advise, thanks again
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEAFGJOG3F32EIDYUNXHILR5I3Y3ANCNFSM4PHBNF7Q>
.
--
…--
Aaron K. Saunders
CEO Clearly Innovative Inc - Luma Lab - In3
[email protected]
www.clearlyinnovative.com
www.In3DC.com
This email message and any attachment(s) are for the sole use of the
intended recipient(s) and may contain proprietary and/or confidential
information which may be privileged or otherwise protected from disclosure.
Any unauthorized review, use, disclosure or distribution is prohibited. If
you are not the intended recipient(s), please contact the sender by reply
email and destroy the original message and any copies of the message as
well as any attachment(s) to the original message.
|
I just wanted activated to be triggered, every time i get to that component |
Things work as expected when i try using |
you should be able to use |
I was only using this repo as an example. But my actual repo has |
First, thanks for this repo, it is very helpful and comes in handy.
This is more of a question, I tried to wrap my
ion-vue-router
in<keep-alive>
tags and am trying to getactivated()
method to work in any of the page routes within this repo and it does not seem to be triggered.Could you please advise on how to use
<keep-alive>
with<ion-vue-router>
and get thoseactivated()
anddeactivated()
methods to work?Thanks in advance.
The text was updated successfully, but these errors were encountered: