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
If you want to extract a renderer or memoize it using useCallback, you currently need to type the arguments manually as they can not be infered from the grid and types such as GridBodyReactRendererProps are not exported:
Maybe there should also be a GridReactBodyRenderer<T> that types the whole function.
Another concern is that web component types such as GridBodyRenderer are exported, which can be confusing because they can not be used with the React component.
The text was updated successfully, but these errors were encountered:
If you want to extract a renderer or memoize it using
useCallback
, you currently need to type the arguments manually as they can not be infered from the grid and types such asGridBodyReactRendererProps
are not exported:That gets more complex if you want to use state from the model.
Instead this should be possible:
Maybe there should also be a
GridReactBodyRenderer<T>
that types the whole function.Another concern is that web component types such as
GridBodyRenderer
are exported, which can be confusing because they can not be used with the React component.The text was updated successfully, but these errors were encountered: