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
overseas-lavender•2y ago
Create a custom component
sunny-green•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.
extended-salmonOP•2y ago
that make sense. Thanks!