Cannot use `v3_singleFetch: true` flag and billing remix function

Hi,
I need to use the flag v3_singleFetch: false to be able to use Response.json in loader and actions.
But i also want to use awaitbilling.request({…}).

But this doesn’t works because billing.request return a redirection but the flag broke this, so i get a 401 error.

Thanks.

Hi there :waving_hand:

Yes, the Remix singleFetch future flag is incompatible redirects in the shopify-app-remix package.

We have released a v0 of shopify-app-react-router package along with a migration guide on using the new version of the package.
We will be releasing the v1 of the package shortly.

I would recommend exploring the migration guide and starting the migration, and use in your production app when we release v1.

1 Like

Sounds really nice ! This is based on v7 ?
I was waiting this for long :slight_smile:

Hi Liz,
What is the advantage when moving the current Shopify app-remix to app-react-router?

The Remix team combined Remix with React Router. (You can read more about that here!)

The new shopify-app-react-router package is a fork of the shopify-app-remix package made compatible with React Router.

As the React Router team releases new features, we will be adopting them into the package. (like middleware!)
So if there is a feature of React Router that you would like to use, that is not available in Remix shopify-app-react-router is the way to take advantage of it.

This mean if my app is working on the old shopify-app-remix I don’t need to migrate to shopify-app-react-router because nothing different, right?
Or does react-router better for speed?

There is quite a lot of good changes.
For example the typing of actions response