• Wrap a universal load function (e.g. +page.js or +layout.js) with Sentry functionality

    Usage:

    // +page.js

    import { wrapLoadWithSentry }

    export const load = wrapLoadWithSentry((event) => {
    // your load code
    });

    Type Parameters

    • T extends ((...args) => any)

    Parameters

    • origLoad: T

      SvelteKit user defined universal load function

    Returns T

Generated using TypeDoc