-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
**perf** improve perf, as discussed in #8091 #8092
base: main
Are you sure you want to change the base?
**perf** improve perf, as discussed in #8091 #8092
Conversation
e9d1a6c
to
7618bdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I think proxies should work well. Just for context, when we started out, we had to support browsers that didn’t have proxy support and we never re-visited it.
I think there are two other places that use Object.defineProperty
. Can you take a stab at them as well please?
also, docs would need an update here please:
https://tanstack.com/query/v5/docs/framework/react/guides/render-optimizations#tracked-properties
☁️ Nx Cloud ReportCI is running/has finished running commands for commit be6a9ae. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
@TkDodo Thanks for this! @joeljeske and I work together and from our profiling this is the only major hot spot. We didn't see improvement in updating the other call sites. Does your test suite cover any performance tests to assert no regressions if other sites are updated? I think it may be useful to incrementally land this as this one is a known issue that we discovered. Also happy to help update the docs, what would you like updated? I can help take this over from @joeljeske as we'd love to give this fix back to the community and not maintain it internally |
Understood, but for having a unified approach, I think we should use either proxies or
This page (https://tanstack.com/query/v5/docs/framework/react/guides/render-optimizations#tracked-properties) shouldn’t refer to |
@joeljeske @Aghassi do you plan to continue working on this contribution ? |
@TkDodo yes sorry, been very busy with work and the holidays. I will be taking this up, sorry for the delay |
No description provided.