Skip to content

Conversation

@benduran
Copy link
Contributor

@benduran benduran commented Nov 6, 2025

Resolves issue from this Slack thread

Summary

Created a @pythnetworks/react-hooks package that currently just re-exports nuqs, but can be used as a place to put shared hooks in the future. Also upgrade ts-duality to the latest version, which no longer formats the built files that are rendered into dist/ (which was not valuable, anyways)

Rationale

Per discourse here, using nuqs in a monorepo with packages and bundlers that support mixed exports between CJS and ESM, some codepaths can import the CJS variant, whereas others import the ESM variant, which causes runtime issues since the contexts are different.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Loaded the Pyth Insights price feeds page, clicked around and ensured that nothing blew up at runtime.

Screenshots

Before

CleanShot 2025-11-06 at 14 23 24

After

CleanShot 2025-11-06 at 14 27 06

@benduran benduran added the bug Something isn't working label Nov 6, 2025
@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Nov 6, 2025 4:37pm
component-library Ready Ready Preview Comment Nov 6, 2025 4:37pm
developer-hub Ready Ready Preview Comment Nov 6, 2025 4:37pm
entropy-explorer Ready Ready Preview Comment Nov 6, 2025 4:37pm
insights Ready Ready Preview Comment Nov 6, 2025 4:37pm
proposals Ready Ready Preview Comment Nov 6, 2025 4:37pm
staking Ready Ready Preview Comment Nov 6, 2025 4:37pm

@benduran benduran merged commit 080ad12 into main Nov 6, 2025
11 checks passed
@benduran benduran deleted the bduran/fix-nuqs branch November 6, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants