Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List - Optional Sync With Location #5741

Merged
merged 4 commits into from
Jan 11, 2021
Merged

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Jan 5, 2021

Make the synchronization with the current location (URL) optional.

By default, this is enabled when a list is passed to a <Resource>. Otherwise the synchronization is opt-in using the syncWithLocation prop

  • Implementation
  • Tests

@djhi djhi added the RFR Ready For Review label Jan 5, 2021
@djhi djhi added this to the 3.12 milestone Jan 5, 2021
@djhi djhi requested a review from fzaninotto January 5, 2021 13:14
Copy link
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add unit tests?

),
})}`,
});
}
dispatch(changeListParams(resource, newParams));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we should keep on relying on the Redux state when we don't sync with location

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@djhi djhi added WIP Work In Progress and removed RFR Ready For Review labels Jan 5, 2021
@djhi djhi added RFR Ready For Review and removed WIP Work In Progress labels Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants