Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Column body function not re-executed when state value used inside changes #8055

Description

@Shivanshu10

Describe the bug

When using a React state variable inside the body function of a Column (in a DataTable), the body function does not re-run when the state changes. This causes the column to not reflect the updated value even though React re-rendered the parent component.

Reproducer

https://stackblitz.com/edit/vtzimrpe?file=src%2FApp.jsx

System Information

primereact: v10.9.5
react: 18.3.1

Steps to reproduce the behavior

  1. Click on Toggle Edit Disable button. This should toggle disableEdit state.
  2. Check if Edit button inside Reviews column is disabled or not.

Expected behavior

  • Clicking on Toggle Edit Disable button, should toggle disable/enable for Edit button in Reviews column.

Metadata

Metadata

Assignees

Labels

Resolution: DuplicateIssue has already been reported or a pull request related to same issue has already been submitted

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions