question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue-server-renderer: camelCased local directives are not applied in SSR

See original GitHub issue

What problem does this feature solve?

Currently, SSR directives can be only passed in with ‘kebab-case’ keys. This isn’t denoted anywhere (except in the tests, luckily!) and not “intuitive” as they can be provided as camelCased ones on the client as well.

Can we introduce camelCased SSR directives? I’d be available to work on the impl.

What does the proposed API look like?

directives: {
  classPrefixer: (node, dir) => {/*...*/}
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
posvacommented, Oct 17, 2018

I mean one single js file to reproduce the problem: https://ssr.vuejs.org

0reactions
posvacommented, Oct 19, 2018

go ahead, nobody is working on this atm

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue-server-renderer | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Server-Side Rendering (SSR) - Vue.js
The keyword here is static: SSG can only be applied to pages consuming static data, i.e. data that is known at build time...
Read more >
Vuejs 2 Server side rendering - not working - Stack Overflow
I've been working on making my vuejs app function well with SSR but ... /node_modules/vue-server-renderer/build.js:96:12) at RenderStream.
Read more >
https://np.edu/_resources/js/build/wy.bundle.js.map
_registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case ... be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer ...
Read more >
vuejs/vue - Gitter
using camelCase (which is purely personal preference) ... @gustojs sussed it, just had to put the v-if on app.vue not the child components....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found