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(tests): add memory leak tests #2508

Merged
merged 2 commits into from
May 8, 2024
Merged

Conversation

backbone87
Copy link
Contributor

Related Issues or Discussions

#2477

Summary

Fails with store and store2

Copy link

vercel bot commented Apr 14, 2024

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

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 2:51am

Copy link

codesandbox-ci bot commented Apr 14, 2024

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.

Copy link

github-actions bot commented Apr 14, 2024

LiveCodes Preview in LiveCodes

Latest commit: 3e3bffb
Last updated: May 8, 2024 2:50am (UTC)

Playground Link
React demo https://livecodes.io?x=id/AKP2G9FBC

See documentations for usage instructions.

@dai-shi
Copy link
Member

dai-shi commented Apr 16, 2024

Thanks, I will have a closer look later, but:

Fails with store and store2

So, it means this doesn't reveal the regression with .t in atomState in store2.

@backbone87
Copy link
Contributor Author

yeah, it seems to be already a problem in main

;(() => {
const objAtom = atom({})
detector = new LeakDetector(store.get(objAtom))
})()
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I somehow thought function closure would be necessary, but I think I got something wrong. Let me update my PR.

@dai-shi
Copy link
Member

dai-shi commented Apr 16, 2024

Hi, I updated the main branch. Would you please pull it and adjust this PR so that the diff becomes minimal?

@dai-shi
Copy link
Member

dai-shi commented May 8, 2024

Fixed by #2533

@dai-shi dai-shi changed the title Failing memory leak tests fix(tests): add memory leak tests May 8, 2024
@dai-shi dai-shi marked this pull request as ready for review May 8, 2024 03:01
@dai-shi dai-shi merged commit feb5ae3 into pmndrs:main May 8, 2024
37 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.

None yet

2 participants