React Router API Reference
    Preparing search index...

    Interface CookieParseOptions

    Parse options.

    interface CookieParseOptions {
        decode?: (str: string) => undefined | string;
    }
    Index

    Properties

    Properties

    decode?: (str: string) => undefined | string

    Specifies a function that will be used to decode a cookie-value. Since the value of a cookie has a limited character set (and must be a simple string), this function can be used to decode a previously-encoded cookie value into a JavaScript string.

    The default function is the global decodeURIComponent, wrapped in a try..catch. If an error is thrown it will return the cookie's original value. If you provide your own encode/decode scheme you must ensure errors are appropriately handled.

    decode