Side effects#
Because Lustre view functions don't contain local state, there's not much use in
performing side effects like HTTP requests in them. Instead, Lustre has so-called
managed effects: we provide descriptions of side effects to the runtime and the
runtime is responsible for executing them and communicating the results back to
our update
function.
We call these descriptions Effects
Whoopsie, I haven't got round to writing this guide yet. If you haven't checked out the quickstart guide that is probably the best place to go to get up to speed.
If you have any questions, feel free to ping @hayleigh.dev
over on the Gleam
Discord server and I'd be happy to help you out!