react-play icon indicating copy to clipboard operation
react-play copied to clipboard

integrate Redux Toolkit, wrap App with Provider, fix Husky hook, and repair pnpm lockfile

Open omid2007hope opened this issue 3 weeks ago • 1 comments

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 basket slice with:
    • addItem
    • removeItem
    • localStorage persistence
  • Wrapped App.jsx with <Provider store={store}>.
  • Fixed .husky/pre-commit to use npm run pre-commit instead of yarn.
  • Cleaned duplicated mapping entry in pnpm-lock.yaml that 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.

omid2007hope avatar Dec 10 '25 09:12 omid2007hope

Deploy request for reactplayio pending review.

Visit the deploys page to approve it

Name Link
Latest commit c3aaa585fd877dcdfe5353788c53f6199cd0369c

netlify[bot] avatar Dec 10 '25 09:12 netlify[bot]