gregnb / gregnb/mui-datatables

Cannot update page property from the outside

Open
#756 13 comments 0 reactions 1 assignee Claimed by @gabrielliwerant View on GitHub
bug on hold question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior

Dynamically setting the `page` property of the options should update the table and trigger the `onChangePage` event.

## Current Behavior

Nothing happens. The table does not react to any change in its options
## Steps to Reproduce (for bugs)

1. Go here https://codesandbox.io/s/focused-lichterman-k8170
2. Notice that there's a set timeout which calls `setPage(1)` after one second
3. Notice that nothing changes in the table

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 4.0.1 |
| MUI-datatables | 2.1.0 |
| React | 16.8.6 |
| browser | any |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.