-
Notifications
You must be signed in to change notification settings - Fork 31
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
removes FooterProvider in favor of just useQuery #2125
Conversation
Quality Gate passedIssues Measures |
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.
Really like this approach! Nice simplifaction and I think this approach might help with performance as well as context is known to rerender a lot of its children. The only thing that might be a problem is data fetching between route transitions, is this a problem @olemartinorg or @bjosttveit ?
That only happens when the data in the context changes, which for the footer, never does.
I believe the footer is static across all app tasks (or at least the footer layout is statically defined across them all), so no, I don't think that's a problem. We (@cammiida, @bjosttveit and me) talked a bit about this on Slack last week, and while this looks good in principle the only drawback I can see with this is that it introduces a slightly different way of doing things than the providers we're currently using for pretty much everything else. |
So my performance comment was not aimed at this implementation, but the pattern in general. I think it might be a good direction to go in, and away from the provider pattern. But that probably warrants a longer discussion in the team :) |
@cammiida @olemartinorg so what do we want to do with this one and #2124 ? |
I think this one is fine - as mentioned before, As for #2124, that's riskier, and would need some additional work for me to be comfortable merging it, at least. After a cursory look, it was clear that PDF generation could run without that query being loaded, and error handling was missing a few places - and when errors were handled, they were handled incorrectly and would lead to rendering the |
862c003
to
678940a
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.
🙌
Quality Gate passedIssues Measures |
Description
Since footerLayout is server data, it can just be kept in Tanstack 👌 I might be very wrong with regards to the stale time, tho, so happy to receive any feedback 😄
Related Issue(s)
Verification/QA
kind/*
label to this PR for proper release notes grouping