![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vike-vue
Vue integration for Vike, see vike.dev/vue.
UI framework Vike extensions like vike-vue
:
onRenderHtml()
) on your
behalf,Use Bati to scaffold a Vike app using vike-vue
.
To add vike-vue
to an existing Vike app:
vike-vue
npm package in your project:npm install vike-vue
vike-vue
: // /pages/+config.js
+import vikeVue from 'vike-vue/config'
+
export default {
// Existing Vike Core settings
// ...
+
+ // New setting introduced by vike-vue:
+ title: 'My Vike + Vue App',
+
+ extends: vikeVue
}
vike-vue
implements the onRenderHtml()
and
onRenderClient()
hooks on your behalf, which are essentially the glue code between
Vike and Vue.
All hooks are cumulative, so you can add your own hooks without overriding the default ones.
vike-vue
introduces the following new hooks:
onCreateApp()
: Allows you to extend the Vue app, typically for registering a Vue
plugin.onAfterRenderHtml()
: Called right after rendering the app on the server. Usually used for dehydration of state management libraries.onBeforeRenderClient()
: Called before mounting the app on the client. Usually used for hydration of state management libraries.bodyHtmlStart()
: Called on the server and client. Allows you to add content at the start of the <body>
tag.bodyHtmlEnd()
: Called on the server and client. Defaults to <div id="teleported"></div>
. Allows you to add content at the end of the <body>
tag.vike-vue
sets the following Vike Core settings on your behalf:
clientRouting=true
: Enable Client Routing.hydrationCanBeAborted=true
: Vue allows the
hydration to be aborted.vike-vue
introduces the following new settings:
Head
: Component Component to be rendered inside the <head>
tag.title
: string <title>...</title>
tag.favicon
: string <link rel="icon" href="..." />
attribute.lang
: string <html lang="...">
attribute.ssr
: boolean Enable/disable Server-Side Rendering
(SSR).stream
: boolean Enable/disable HTML streaming.Layout
: Component Wrapper for your Page component.vike-vue
introduces the following new component hooks:
useData()
: Access the data that is returned by a data()
hook
from any component.usePageContext()
: Access the pageContext
object
from any component.vike-vue
introduces the following new components:
ClientOnly
: Wrapper to render and load a component only on the client-side.Teleports work out of the box with vike-vue
when using <Teleport to="teleported">
as we inject an empty div with id="teleported"
by default. You can add more targets by using a custom bodyHtmlEnd()
hook.
FAQs
Docs: [vike.dev/vike-vue](https://vike.dev/vike-vue) Source code: [GitHub > vikejs/vike-vue](https://github.com/vikejs/vike-vue)
The npm package vike-vue receives a total of 1,829 weekly downloads. As such, vike-vue popularity was classified as popular.
We found that vike-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.