Comments (1)
Might be helpful to share my current workaround
// ...other imports
import { useEventListener, useSessionStorage } from "usehooks-ts";
export const DataView = (props: { initialData: ServerDataType[] }) => {
const [value, setValue, removeValue] = useSessionStorage(
"server-data",
props.initialData
);
useEventListener("beforeunload", removeValue);
async function loadMore() {
// ...same rest
}
from next.js.
Related Issues (20)
- Docs: Add explanation why CacheHandler.revalidateTag never gets called using Pages Router
- `<Link` breaking when there is padding or margin attached HOT 3
- Page props not passed for Index page when Middleware and basePath in use
- [Middleware] Locale in NextResponse.rewrite(...) path ignored for dynamic routes when basepath is set and skipMiddlewareUrlNormalize is true
- Not working with Yarn pnpm strategy HOT 3
- server action compiler error is thrown when `graphql` relay tags are used HOT 6
- Double redirect in RSC page when using a loading boundary HOT 6
- Edge Runtime and AWS SDK credentials
- Application error: a client-side exception has occurred HOT 1
- Canonical link doesn't accept search params on root path
- next build throws `Error: <Html> should not be imported outside of _document` after 1 month, and no changes made to the code or build environment HOT 1
- Rsc header and query params always null on middleware
- NODE_OPTIONS='--inspect=0.0.0.0:9229' next dev no work HOT 1
- Next.js v14.2 creates source map issues with various components in VS Code debugger
- Layout shift while rendering on hard navigation from 14.2.2
- Using export dynamic = 'auto' opts you into dynamic rendering
- dynamic assetPrefix not working in "standalone" build, because of serialization
- Route handler always returns `X-Vercel-Cache: STALE`
- Docs: Docs for all (previous) major versions HOT 1
- Generating localized sitemap fails with TypeError: Cannot read properties of null (reading 'childNodes') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.