memo
Read-only signal whose value is the return of fn, recomputed when any signal it reads changes. Memos in pota are lazy: the function doesn't run until the memo is read the first time. If it is never read, it never runs.
Use memo to cache derived work and share it with multiple consumers — they all see the same value without re-running fn.
# Arguments
| name | type | description |
|---|---|---|
| fn | () => T | function to memoise |
| options? | { equals?: false | ((prev, next) => boolean) } | equals: false notifies on every recomputation; a comparator lets you control when dependents re-run |
Returns: a read-only signal — call it to read the current value.