Skip to content
New issue

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

Provide a way to eagerly marshal (snapshot) all properties to js object. #399

Open
reitowo opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@reitowo
Copy link

reitowo commented Nov 22, 2024

When a function returns a class object, it can't be serialized to json and send it across RPC, because all of properties are dynamically loaded. Is there any way to marshal it to a completely JS object? Because compiling into a module doesn't work well.

It will be nice if can provide a snapshot helper to take the snapshot of a reference and let it pass with rpc.

@reitowo reitowo changed the title Unable to JSON.stringify Provide a way to eagerly marshal all properties to js object. Nov 22, 2024
@reitowo reitowo changed the title Provide a way to eagerly marshal all properties to js object. Provide a way to eagerly marshal (snapshot) all properties to js object. Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant