Skip to content

[shopify-app-react-router v1.2.0] /auth/session-token.data rendered as document causing white "200" page in embedded app after repeated mutations #3112

@vincenzo-sciarretta

Description

@vincenzo-sciarretta

Environment

  • @shopify/shopify-app-react-router: ^1.2.0
  • react-router: ^7.12.0
  • @shopify/app-bridge: ^3.7.11
  • @shopify/app-bridge-react: ^4.2.4
  • @react-router/node: ^7.12.0

Problem

After 3-10 repeated mutations via useFetcher in an embedded Shopify app,
the iframe shows a white "200" page and becomes unresponsive.

Log pattern after every mutation:

POST /_root.data? 202
GET /auth/session-token.data? 200

After several mutations, session-token.data is rendered as a document
instead of a fetch, causing the white "200" page.

Already tried

  • useFetcher instead of useSubmit
  • No navigate/reload after mutations
  • List updated from local state only
  • lastHandledTs ref to avoid double execution
  • preventDefault/stopPropagation on Enter key

Nothing resolves — appears to be internal to the package.
Is there a known fix or recommended version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions