
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ssrx/plugin-tanstack-router
Advanced tools
The runtime plugin is not yet implemented.
The router 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/plugin-tanstack-router/adapter';
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.
Use the below version in your project:
/**
* Adapted from https://github.com/TanStack/router/blob/main/packages/react-router/src/lazyRouteComponent.tsx
*
* The comp.preload property has been adjusted to maintain a reference to the orginal lazy import function.
*/
export function lazyRouteComponent<T extends Record<string, any>, TKey extends keyof T = 'default'>(
importer: () => Promise<T>,
exportName?: TKey,
): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent<TProps> : never {
const load = importer;
const lazyComp = React.lazy(async () => {
const moduleExports = await load();
const comp = moduleExports[exportName ?? 'default'];
return {
default: comp,
};
});
(lazyComp as any).preload = load;
return lazyComp as any;
}
FAQs
## Plugin
We found that @ssrx/plugin-tanstack-router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.