79761771

Date: 2025-09-11 10:06:41
Score: 2
Natty:
Report link

Fix:

Changed pageSizeOptions to {[25]}

Deleted initialState

Introduced rowCount state in DashboardProvider, useEffect that sets it everytime peopleGroupTarget.totalCount changes, and when its not undefined, and passed it on through context.

Got it from destructuring useDasboard, and used it in rowCount prop of the datagrid, rowCount = rowCount (state thought context)

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user31463466