Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@ssrx/adapter-tanstack-router
Advanced tools
This adapter allows you to use tanstack router with `@ssrx/vite`. It supports code splitting and asset pre-loading so long as you leverage the adjusted `lazyRouteComponent` function (see note at end of this readme).
This adapter allows you to use tanstack router with @ssrx/vite
. It supports code splitting and asset pre-loading so
long as you leverage the adjusted lazyRouteComponent
function (see note at end of this readme).
import { tanstackRouterAdapter } from '@ssrx/adapter-tanstack-router';
import { ssrx } from '@ssrx/vite/plugin';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
// ... your other plugins
ssrx({
routerAdapter: tanstackRouterAdapter({
// Override this default if needed.. the adapter expects your routes file to export the
// route tree on this named export
exportName: 'routeTree',
}),
}),
],
});
Note, the lazyRouteComponent
included in @tanstack/react-router
does not preserve the identity of the original
dynamic import when it assigns the preload property.
Import lazyRouteComponent
from @ssrx/adapter-tanstack-router
instead (or copy it into your project, it's a tiny
function).
FAQs
This adapter allows you to use tanstack router with `@ssrx/vite`. It supports code splitting and asset pre-loading so long as you leverage the adjusted `lazyRouteComponent` function (see note at end of this readme).
We found that @ssrx/adapter-tanstack-router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.