You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, the HOC I used above didn't work out well. Using the field like this with a View component caued labels for GenericFunctionField not be shown. So I removed the HOC and just settled with any for now.
In version 3.9.0, the
FunctionField
is declared like this:Shouldn't it be defined as a generic component?
Because now you can't do this:
and as it's not generic TypeScript doesn't allow this:
Which effectively means you can't have typed record in render prop.
Defining the
FunctionField
like this seems like it would work:The text was updated successfully, but these errors were encountered: