daattali / shinywc

1 stars 1 forks source link

Some methods can have return values #2

Closed daattali closed 3 years ago

daattali commented 3 years ago

Currently, calling a method assumes it's only for side effects. Methods can also return data.

daattali commented 3 years ago

This can be supported with a callback, but will also need to figure out how to represent this in the schema

daattali commented 3 years ago

Will assume that methods are only one-way actions, not two-way communication. Closing this. Will reconsider if there are common usecases of calling a component's method and expecting a return value