const [organization] = useSelectedOrganization();
const formatMoney = () => moneyFormatter(organization);
organization is reactive. I have a function returning me a money formatter (according to the organization's settings).
The issue is in the code I have to use formatMoney like such:
formatMoney()(amount, currency)
Is it anyhow possible to keep reactivity on organization but to write:
formatMoney(amount, currency)