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

Bug 99158: useCache error #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BogdanBrat
Copy link
Contributor

Description

In the initial version of the code, the following error occurred:

image

This error indicates that useCache was being called in a component that was outside of the CacheProvider, causing the application to crash during rendering.
To fix this issue, has been added CacheProvider to the component structure rendered in root.render(), ensuring that all components using useCache are properly wrapped within the provider.

Screenshot/video

image

image

Related workitems

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Test Instructions

To test this PR:

  1. Go the the tabs folder with cd tabs
  2. Run npm install
  3. Run npm start
  4. Verify that the React application launches without errors and works as expected.

Checklist:

  • My code follows the style guidelines of this project (see "Contribute" in the wiki)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New and existing unit tests pass locally with my changes

fyi @EdiWeeks

@SamKyselyov
Copy link

SamKyselyov commented Feb 26, 2025

@BenGWeeks Ready to be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants