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: don't cache failed script #771

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Conversation

hosseinmd
Copy link
Contributor

Summary

#770

The root cause was where cache is saving, script Resolver should not save the cache, it should be saved after script loaded successfully.

Test plan

I added a test for failing scenario which expected to The failed script doesn't save on cache and also if scriptLoader called again, expected in second time fetch property should be true too.

Copy link

changeset-bot bot commented Oct 18, 2024

🦋 Changeset detected

Latest commit: 664377e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@callstack/repack Patch
@callstack/repack-dev-server Patch
@callstack/repack-init Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
repack-website ⬜️ Ignored (Inspect) Visit Preview Oct 29, 2024 8:26am

Copy link
Member

@jbroma jbroma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @hosseinmd, sorry for the late reply and thanks again for yet another contribution 🎉. I was on sick leave during last week so wasn't able to get to this any sooner.

Overall, the changes in code looks good, I just need some explanation for the tests, take a look 👇

Copy link
Member

@jbroma jbroma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last thing, other than that looks good!

Copy link
Member

@jbroma jbroma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@jbroma jbroma merged commit df1d587 into callstack:main Oct 29, 2024
5 checks passed
@jbroma
Copy link
Member

jbroma commented Oct 29, 2024

Thank you for your contribution @hosseinmd 👏🎉

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