cms
cms copied to clipboard
Bug/#496
PR Fixes:
- Fixes Bug #496
- Makes a global atom (recoil state for the side-bar component and stores the check updation state)
Approach
- Earlier the state was only stored in micro level in the check state so when the component is unmounted the state returns to global level (previous state for checks or course).
- Implemented Recoil State for each course to manage a global state store for the side-bar component and when a video (children) is checked it will update its state in the store and rerender the component .
Resolves #496
Checklist before requesting a review
- [ ✓] I have performed a self-review of my code
- [ ✓] I assure there is no similar/duplicate pull request regarding same issue
Can't we just revalidate the page or just quick router.refresh()?
@siinghd Hey there , You mean a page reload ?