@mittwald/flow-react-components 1.2.0-next.31 → 1.2.0-next.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -158,6 +158,15 @@ Remote generation details:
158
158
  output, because the host has to call it: that needs an eager slot or
159
159
  `@flr-ignore-props`. `checkSerializableProps` **fails generation** on any such
160
160
  prop, so a new one cannot ship.
161
+ - **A function property's return value is a Promise on the host.** Functions do
162
+ cross — as thread proxies — but calling one is a round trip. Type the return
163
+ as `Promise<T> | T` and await it on the host (`ChartTooltip`'s formatters), or
164
+ keep the prop off the remote surface with `@flr-ignore-props` (`XAxis`/`YAxis`
165
+ `tickFormatter`). A host that reads the result synchronously gets the Promise
166
+ itself — recharts concatenated it into every tick as `[object Promise]`.
167
+ `checkSerializableProps` fails generation on a new one; the pre-existing set
168
+ is listed in `acknowledgedValueReturningProps`, which can neither grow nor go
169
+ stale.
161
170
  - `@flr-ignore-props` excludes props that must not cross the remote boundary —
162
171
  either because they cannot be serialized, or because they could do **too much
163
172
  on the host side**. A global ignore list lives in