Comments (3)
This is not a bug, it is a documentation issue however.
Maps & dates are not JSON serializable. It would be the same as returning new Map() from a server action to the client, it crashes.
Thanks for clarifying @sannajammeh
- I could draft a doc's update as my first contribution to Next, but I'm not sure how people feeling about documenting an unstable API (
unstable_cache
). - I would think there should be some warning/runtime error/lint issue when a user attempts to cache a non-serializable instance. Perhaps this could be added as well?
from next.js.
probably a similar issue with the Date
object, as a Date will be returned as string from the cache
from next.js.
This is not a bug, it is a documentation issue however.
Maps & dates are not JSON serializable. It would be the same as returning new Map() from a server action to the client, it crashes.
from next.js.
Related Issues (20)
- [Parallel and Intercepted Dynamic Routes] Will intercept normal routing
- output export ssg generation for dynamic even with generateStaticParams id value is comming as %5Bslug%5D so page is not generated in build HOT 1
- Docs: Some Tags in "Layouts and Templates" page are not showing properly in the Firefox browser HOT 2
- Docs: Link documentation - Remove 'With URL Object' section
- context
- Parallel route RSC does not unmount when navigating back to a `default.tsx` HOT 5
- Next build perf issue with long string `.concat` function
- The __debugSource attribute is missing from the React Fiber instance
- Inconsistent behavior for usePathname between local and deployed (on Vercel)
- Docs: Pages Router Authentication links broken
- route methods are executed during build
- default.tsx parallel routes are using the loading.tsx from the parent route instead of the one from the parallel route HOT 1
- Hot reload causes tab to hang and crash HOT 1
- Remove @babel/plugin-transform-classes HOT 1
- Remove @babel/plugin-transform-classes HOT 1
- Remove @babel/plugin-transform-classes
- Functions are not valid as a child of Client Components HOT 1
- server actions block navigation
- navigation from `pages` directory to `app` does not refresh page which results in a blank page
- output export ssg generation for dynamic even with generateStaticParams id value is comming as %5Bslug%5D so page is not generated in build
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.