Skip to content

refactor(suspense): Extract in reusable API the suspense logic with cache#192

Merged
david-bretaud-dev merged 2 commits into
mainfrom
david-bretaud-dev/clean-suspense-fetch
Jul 14, 2026
Merged

refactor(suspense): Extract in reusable API the suspense logic with cache#192
david-bretaud-dev merged 2 commits into
mainfrom
david-bretaud-dev/clean-suspense-fetch

Conversation

@david-bretaud-dev

Copy link
Copy Markdown
Collaborator

Goals

  1. Transform the error boundary into a Functional Component (that can use translations inside now)
  2. Extract the promise with key storage into a reusable API, to make any new usage of this use pattern easier and ready out of the box

@severo severo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Comment thread webapp/src/shared/api/suspense-fetch.ts Outdated
@david-bretaud-dev david-bretaud-dev force-pushed the david-bretaud-dev/clean-suspense-fetch branch from 1f2f92f to e275af2 Compare July 14, 2026 15:36
@david-bretaud-dev david-bretaud-dev merged commit b7a6cc5 into main Jul 14, 2026
5 checks passed
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.

Refactor: Extract API for refetch/promise store key/suspense boundary

2 participants