Since upgrading from flow version 0.110.1 we need to replace the definition of an empty object {} with { ...null }, wherever we use it in an exact object e.g. for conditionally spreading a value into that exact object like in this example:
I could not find a documentation for this behavior, and spreading null here does not make sense to me. But it seems like flow interprets {} as an inexact empty Object:
Since upgrading from flow version 0.110.1 we need to replace the definition of an empty object
{}
with{ ...null }
, wherever we use it in an exact object e.g. for conditionally spreading a value into that exact object like in this example:I could not find a documentation for this behavior, and spreading null here does not make sense to me. But it seems like flow interprets
{}
as an inexact empty Object: