react-play
react-play copied to clipboard
integrate Redux Toolkit, wrap App with Provider, fix Husky hook, and repair pnpm lockfile
Overview
This pull request integrates Redux Toolkit into the application, adds a global store, implements a basket slice with add/remove logic, and wraps the app with the Redux Provider. It also fixes a broken Husky pre-commit hook and removes a duplicated-key issue in the pnpm-lock.yaml.
Changes Included
- Added Redux store (
configureStore) and connected root reducer. - Added
basketslice with:- addItem
- removeItem
- localStorage persistence
- Wrapped
App.jsxwith<Provider store={store}>. - Fixed
.husky/pre-committo usenpm run pre-commitinstead of yarn. - Cleaned duplicated mapping entry in
pnpm-lock.yamlthat caused install failures.
Type of Change
- [x] New feature (non-breaking, adds functionality)
- [x] Fix (resolves Husky hook error + pnpm lockfile issue)
- [ ] Breaking change (not applicable)
How Has This Been Tested?
- Manual testing in local environment:
- App renders correctly with Redux Provider.
- Slice actions update state and persist to localStorage.
- pnpm/npm installs run without lockfile errors.
- Husky pre-commit hook no longer throws “yarn: command not found”.
Additional Notes
These changes merge cleanly and do not modify existing components outside Redux integration. This prepares the project for scalable state management.
Deploy request for reactplayio pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | c3aaa585fd877dcdfe5353788c53f6199cd0369c |