generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Non-shallow dynamic pages (#391)
* fix: Non-shallow updates on dynamic pages Closes #282. * chore: Fix undefined when running test locally * chore: Fix Turbo dependency on basePath * fix: Handle base path
- Loading branch information
Showing
5 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/e2e/src/pages/pages/useQueryState/dynamic/[route]/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
import { GetServerSideProps } from 'next' | ||
import { parseAsString } from 'next-usequerystate' | ||
import IntegrationPage from '../../index' | ||
export default IntegrationPage | ||
|
||
export const getServerSideProps = (async ctx => { | ||
const string = parseAsString.parseServerSide(ctx.query.string) | ||
console.dir({ string }) | ||
return { | ||
props: { | ||
string | ||
} | ||
} | ||
}) satisfies GetServerSideProps<{ | ||
string: string | null | ||
}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters