-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
SSR custom directive not working with router-link. #1
Comments
Hmm 🤔 , I seem same the below issue: |
Maybe, custom directive doesn't not support for components on SSR. |
close (in-activity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vue & vue-i18n version
[email protected] (with [email protected])
[email protected]
[email protected]
Reproduction Link
Online Demo
Github Repo
Steps to reproduce
Open the online demo link:
{{ $t('xxx') }}
shows immediately (SSR) butv-t="'xxx'"
shows a bit later (no SSR)renders to:
Only
{{ $t() }}
is server side rendered,v-t="'xxx"
isn't.This SSR directive works with primitive html tags, but when using with vue components such as
<router-link>
, it fails.What is Expected?
v-t
directive on<router-link>
to work with SSRWhat is actually happening?
v-t
directive only works with primitive html elements, but not with vue components such as<router-link>
.Thank you so much!
The text was updated successfully, but these errors were encountered: