Skip to content

ref: Prefer renderHookWithProviders() over renderHook() and manually creating a wrapper.#112863

Merged
ryan953 merged 11 commits into
masterfrom
ryan953/renderWithHookProviders
Apr 13, 2026
Merged

ref: Prefer renderHookWithProviders() over renderHook() and manually creating a wrapper.#112863
ryan953 merged 11 commits into
masterfrom
ryan953/renderWithHookProviders

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented Apr 13, 2026

ryan953 and others added 11 commits April 13, 2026 13:56
Replace renderHook with manual OrganizationContext wrapper with renderHookWithProviders, which provides the organization context (and other common providers) directly via options.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
….tsx

Replace renderHook with manual QueryClientProvider+OrganizationContext wrapper with renderHookWithProviders, which provides these common providers via options.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with manual QueryClientProvider+OrganizationContext wrapper with renderHookWithProviders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with manual QueryClientProvider+OrganizationContext wrapper with renderHookWithProviders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with manual QueryClientProvider+OrganizationContext wrapper with renderHookWithProviders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with manual QueryClientProvider-only wrapper with renderHookWithProviders across 7 files: useTransactions, useTraceMetrics, useSpans, useReleases, useLogs, useIssues, useErrors widget query specs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with inline QueryClientProvider wrapper with renderHookWithProviders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with manual OrganizationContext wrapper with renderHookWithProviders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace renderHook with manual QueryClientProvider wrapper with renderHookWithProviders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ryan953 ryan953 requested review from a team as code owners April 13, 2026 21:35
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 13, 2026
@ryan953 ryan953 changed the title Ryan953/render with hook providers ref: Prefer renderHookWithProviders() over renderHook() and manually creating a wrapper. Apr 13, 2026
Copy link
Copy Markdown
Member

@scttcper scttcper left a comment

Choose a reason for hiding this comment

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

scanned a few tests, nice to see more org contexts go away

@ryan953 ryan953 merged commit c6354df into master Apr 13, 2026
67 checks passed
@ryan953 ryan953 deleted the ryan953/renderWithHookProviders branch April 13, 2026 22:01
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants