Skip to content

Conversation

@tylersayshi
Copy link
Member

Let me know if this approach is ok. The change makes it so that id's internally for routes are always decoded. This makes it so the prop is decoded when it is passed. It also fixes the runtime error. The runtime error happened when the id as being looked up in elements as decoded, but internally stored as encoded, so our invalid element id error was thrown.

fixes #1302

Let me know if this approach is ok. The change makes it so that id's
internally for routes are always decoded. This makes it so the prop
is decoded when it is passed. It also fixes the runtime error. The runtime
error happened when the id as being looked up in elements as decoded, but
internally stored as encoded, so our invalid element id error was thrown.

fixes #1302
@vercel
Copy link

vercel bot commented Mar 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
waku ⬜️ Ignored (Inspect) Visit Preview Mar 10, 2025 5:15am

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 10, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi
Copy link
Member

dai-shi commented Mar 10, 2025

I might overlook something, but it looks good to me. Would it be possible to add an e2e test case?

@tylersayshi
Copy link
Member Author

added!

@dai-shi dai-shi merged commit 839e114 into wakujs:main Mar 10, 2025
26 checks passed
@dai-shi dai-shi mentioned this pull request Mar 10, 2025
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.

Single quotes in route params will cause the page crash

2 participants