using hooks in columndef
This is a snippet of my columndef, it is the last column.
I want to invalidate the query when the action is complete. But I can't use the useQueryClient hook in here.
Is there a proper way to do this in columndef?
3 Replies
deep-jade•2y ago
Create a custom component
unwilling-turquoise•2y ago
Yes - a custom component. Store the dynamic data you want to use within your cell render, then create your dom structure and DropdownMenu wrapper within your custom component.
xenial-blackOP•2y ago
that make sense. Thanks!