Skip to content

How to add hook functionality in a custom cell button #1721

@ignaraph

Description

@ignaraph

Question
Hello, i have recently created a table that has a custom cell in the last column, the cell contains a button. This button should trigger the opening of a Modal so that the user can decide to delete that row. I want to use React-Bootstrap Modal component but it uses state to handle the opening or closing of the Modal. The problem is that when I tried to use a hook like useState in the custom cell component, react crashes because of breaking hook rules i believe. Is there a way to do this??

Screenshots
image
image

Thank you in advance for your help

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions