Join GitHub today
Update Flow and Fix Hydration Types #11493
This is an alternative to #11386.
This highlighted that this API was already poorly defined. This fixes that.
First, we had no refinement on the hydratable child so we just assumed that if
Another thing that this highlighted is that there isn't really any difference between an Instance and a TextInstance. They could be the same type and probably often is in other models.
So this PR also introduces a Hydratable Instance type which is really a placeholder value for what we will later refine to an Instance or a TextInstance. This lets something that is both an Instance and a TextInstance be passed along here and only when we try to hydrate it do we define it as one or the other.