What is context in Composable functions?
mainIn composable-functions, context is a mechanism used to ensure the safety and propagation of constant values across a sequence of compositions. Instead of manually passing a shared dependency (like an authenticated user or a configuration object) through every single function in a chain, you use a Composable that accepts a context object as its second argument.
A Composable with context follows this type signature:
Composable<(input: I, context: C) => O>
This is particularly useful for scenarios like authorization, where an identity or permission set must be available to every step of a process without being explicitly returned and re-passed by each intermediate function.