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

fix: inlinesvg: memoized fetch and compare with previous url #734

Conversation

dkilgore-eightfold
Copy link
Contributor

SUMMARY:

  • memoizes fetchSvg with managed url
  • Only execute fetchSvg if the current url is different than the previous url

GITHUB ISSUE (Open Source Contributors)

#711

CHANGE TYPE:

  • Bugfix Pull Request
  • Feature Pull Request

TEST COVERAGE:

  • Tests for this change already exist
  • I have added unittests for this change

TEST PLAN:

Pull the PR branch and run yarn and yarn storybook. Verify the InlineSVG story behaves as expected.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 19, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f363a3f:

Sandbox Source
React Configuration
Vanilla Configuration

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/components/InlineSvg/InlineSvg.tsx 91.83% <95.00%> (+1.13%) ⬆️

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@dkilgore-eightfold dkilgore-eightfold merged commit 77a7946 into EightfoldAI:main Oct 24, 2023
3 of 5 checks passed
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.

3 participants