Learn how to invoke a function through API.
invoke
from runtime.ts
invoke
function. For example, to
fetch data from a function, you would use the following code:
Can’t find this file? Try this one
invoke
function takes an object with a key
property that specifies
the path to your function and a props property that contains your function input
props. When you call invoke
, live.ts will invoke your function as it does for
rendering sections and return it to you as a JavaScript object. It is also
possible to call functions defined in an App installed in the project. For
example,