Getting data from local caching in Inertia.js

970 views Asked by At

Comming from here: Inertia Local State Caching

How do I get data from my local state caching on a new page?

Example:

  remember: ['cart'],

  data() {
    return {
      sending: false,
      cart: {
        amount: 1,
        value: 50,
        deliverance_date: null,
        send_by_email: true,
        send_by_phone: false,
      },
       currency: 'EUR',
    };
  },

The link above does not cover how to access the remembered data.

How can I access cart data on the next/new page?

0

There are 0 answers