Skip to content

Commit 3826e4f

Browse files
Instruct users to use s-link in the README
1 parent 12f09a2 commit 3826e4f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,10 @@ Create the database for Prisma. Run the `setup` script in `package.json` using `
147147

148148
Embedded apps must maintain the user session, which can be tricky inside an iFrame. To avoid issues:
149149

150-
1. Use `Link` from `react-router` or `@shopify/polaris`. Do not use `<a>`.
151-
2. Use `redirect` returned from `authenticate.admin`. Do not use `redirect` from `react-router`
150+
1. Use `s-link` from Polaris web components. Don't use `Link` from `react-router` and don't use `<a>`.
151+
2. Use `redirect` returned from `authenticate.admin`. Don't use `redirect` from `react-router`
152152
3. Use `useSubmit` from `react-router`.
153153

154-
This only applies if your app is embedded, which it will be by default.
155-
156154
### Webhooks: shop-specific webhook subscriptions aren't updated
157155

158156
If you are registering webhooks in the `afterAuth` hook, using `shopify.registerWebhooks`, you may find that your subscriptions aren't being updated.

0 commit comments

Comments
 (0)