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

Returning a collection - transferHandlers to be called #666

Open
tbrannam opened this issue Jul 30, 2024 · 0 comments
Open

Returning a collection - transferHandlers to be called #666

tbrannam opened this issue Jul 30, 2024 · 0 comments

Comments

@tbrannam
Copy link

Given an exposed interface.

interface Service {
 find: (x) => ClassInstance
 findAll: (x)=> ClassInstance[]
}

I can properly call both methods - but the transferHandlers implementing ClassInstance does not get called when handling the response from findAll method - resulting in issues on the other side.

Are nested - non-transferable objects expected to be serialized by default? Implementation says no since only the root return value is passed to toWireValue .

Is it expected that the custom transferHandlers should inspect canHandle values for expected collections and serialize them directly?

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