How to use the @inertiajs/inertia.Inertia.visit function in @inertiajs/inertia

To help you get started, we’ve selected a few @inertiajs/inertia examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github laravelcm / website / resources / assets / ts / utils / helpers.tsx View on Github external
export const navigate = (e: SyntheticEvent, url: string, options?: object) => {
  e.stopPropagation();
  Inertia.visit(url, { method: "get", ...options });
};

@inertiajs/inertia

A framework for creating server-driven single page apps.

MIT
Latest version published 2 years ago

Package Health Score

66 / 100
Full package analysis

Similar packages