mcgrealife
Explore posts from serversTTCTheo's Typesafe Cult
•Created by mcgrealife on 5/21/2023 in #questions
Type-safe url params in NextJS app-router, similar to tanstack-router?
Some tankstack router features:
- "first-class search-param for managing state in the URL."
- "Search Param Parsing + Serialization"
- "Search Param Validation"
Hoping to achieve this in nextjs app-router.
So far, I only found https://github.com/pbeshai/use-query-params
6 replies
TTCTheo's Typesafe Cult
•Created by mcgrealife on 2/10/2023 in #questions
typescript-eslint/no-misused-promises: how to handle Promise<void> in event handlers?
<button onClick={someAsyncFetchFunction} />Click</button>
This ESLint rule didn't squash the warning:
https://github.com/typescript-eslint/typescript-eslint/pull/4623
3 replies