We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const getProcess = query(async () => { "use server"; return process; }, "process"); const process = createAsync(() => getProcess()); return ( <Suspense fallback={<p>Loading...</p>}>{JSON.stringify(process())}</Suspense> );
seroval doesn't know how to serialize process. how about treat something that can't be serialized as normal json?
process
if the solution is implemented, this is how it'd work under the hood:
const getProcess = query(async () => { "use server"; return JSON.parse(JSON.stringify(process)); }, "process"); const process = createAsync(() => getProcess()); return ( <Suspense fallback={<p>Loading...</p>}>{JSON.stringify(process())}</Suspense> );
this allows for more room for other types of values
The text was updated successfully, but these errors were encountered:
This is too dangerous. Majority of process info is sensitive. Are you really sure you want to serialize this?
Regardless, this won't be supported like any other "unserializable" objects.
Sorry, something went wrong.
This is too dangerous. Majority of process info is sensitive. Are you really sure you want to serialize this? Regardless, this won't be supported like any other "unserializable" objects.
oh, regarding that, no, i of course don't wanna serialize process. this is just an example.
I agree that this is too dangerous to be a default, but potential user-base customizations of Seroval are being discussed in #1474
So I'm closing this one and once we get to an architecture that Seroval may allow for extensibility, this can be done separately
@huseeiin , please join the discussion there with your use-case :)
No branches or pull requests
Duplicates
Latest version
Summary 💡
seroval doesn't know how to serialize
process
. how about treat something that can't be serialized as normal json?Examples 🌈
if the solution is implemented, this is how it'd work under the hood:
Motivation 🔦
this allows for more room for other types of values
The text was updated successfully, but these errors were encountered: