generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Remove support for unstable shallow routing
Next.js versions between 14.0.2 and 14.1.0 contain bugs on shallow routing (or other routing code) that makes `nuqs` hard to maintain for these versions.
- Loading branch information
Showing
7 changed files
with
24 additions
and
48 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
'use client' | ||
|
||
import React, { Suspense } from 'react' | ||
|
||
export default function Page() { | ||
return ( | ||
<p id="windowHistorySupport"> | ||
{String(process.env.__NEXT_WINDOW_HISTORY_SUPPORT)} | ||
</p> | ||
<Suspense> | ||
<Client /> | ||
</Suspense> | ||
) | ||
} | ||
|
||
function Client() { | ||
const [nextJsVersion, setNextJsVersion] = React.useState<string | null>(null) | ||
React.useEffect(() => { | ||
// @ts-expect-error | ||
setNextJsVersion(window.next?.version) | ||
}, []) | ||
return <p id="nextJsVersion">{nextJsVersion}</p> | ||
} |
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