-
-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
Version: 3.0.0-beta.42
Platform: React Native / Expo@^54.0.23
Based on the documentation I would expect these (with the babel plugin) to be identical:
// This works as expected. The name is rendered twice
<Memo>
{() => (
<>
<Text>{state$.computedObservable.get()?.name ?? "loading"}</Text>
<Text>{state$.computedObservable.get()?.name ?? "loading"}</Text>
</>
)}
</Memo>
// This doesn't work. It shows loading and does not update when the observable changes.
<Memo>
<Text>{state$.computedObservable.get()?.name ?? "loading"}</Text>
<Text>{state$.computedObservable.get()?.name ?? "loading"}</Text>
</Memo>The babel plugin does appear to be working. This works:
<Memo>
<Text>{state$.computedObservable.get()?.name ?? "loading"}</Text>
</Memo>But when there is more than one child the computed observable no longer triggers re-renders.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels