Skip to content

ref(explore): Inline and remove getIdFromLocation helper#115442

Open
ryan953 wants to merge 2 commits into
masterfrom
claude/amazing-jones-edbfc5
Open

ref(explore): Inline and remove getIdFromLocation helper#115442
ryan953 wants to merge 2 commits into
masterfrom
claude/amazing-jones-edbfc5

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented May 12, 2026

Summary

  • Inlined all 12 call sites of getIdFromLocation with direct decodeScalar calls
  • Deleted contexts/pageParamsContext/id.tsx (simple version with hardcoded id key)
  • Removed getIdFromLocation from queryParams/savedQuery.ts (key-based version)

The function was a trivial one-line wrapper around decodeScalar(location.query.id) or decodeScalar(location.query?.[key]) that added indirection without providing meaningful abstraction.

The getIdFromLocation function was a trivial wrapper around decodeScalar
that added indirection without value. Inline all 12 call sites and
delete both definitions.
@ryan953 ryan953 requested review from a team as code owners May 12, 2026 22:06
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.50%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant