Skip to content

Fix double render error in StoreController#445

Merged
jarednorman merged 1 commit into
solidusio:mainfrom
SuperGoodSoft:issue-444/fix-double-render
Jun 8, 2026
Merged

Fix double render error in StoreController#445
jarednorman merged 1 commit into
solidusio:mainfrom
SuperGoodSoft:issue-444/fix-double-render

Conversation

@forkata

@forkata forkata commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

It seems like the way this method works changed in Rails 8 and we no longer
need to render when using fresh_when, as it will either render the partial or
return a not modified status code. The previous behaviour would result in a double
render error on new versions of Rails.

Fixes #444

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

We don't need to render when using `fresh_when`, as it will either
render the partial or return a not modified status code.

Co-authored-by: Adam Mueller <adam@super.gd>
Co-authored-by: Alistair Norman <alistair@super.gd>
Co-authored-by: Jared Norman <jared@super.gd>
Co-authored-by: Noah Silvera <noah@super.gd>
Co-authored-by: Senem Soy <senem@super.gd>
Co-authored-by: Sofia Besenski <sofia@super.gd>
@forkata
forkata marked this pull request as ready for review June 3, 2026 23:02
@jarednorman
jarednorman merged commit bc6cf1a into solidusio:main Jun 8, 2026
71 of 72 checks passed
@jarednorman
jarednorman deleted the issue-444/fix-double-render branch June 8, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/cart_link endpoint gives AbstractController::DoubleRenderError

3 participants