-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
ref(issue-list): Create copy of overview.tsx as a functional component #82784
Conversation
15c5805
to
659b4d7
Compare
13822c7
to
34f14ad
Compare
Bundle ReportChanges will increase total bundle size by 18.7kB (0.06%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
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.
nice, lets start here and keep going
import withOrganization from 'sentry/utils/withOrganization'; | ||
import withPageFilters from 'sentry/utils/withPageFilters'; | ||
import withSavedSearches from 'sentry/utils/withSavedSearches'; | ||
import CustomViewsIssueListHeader from 'sentry/views/issueList/customViewsHeader'; |
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.
This is failing because I merged this PR that changed the component name - just replace this with
import IssueViewsIssueListHeader from 'sentry/views/issueList/issueViewsHeader';
and update the component below
PR reverted: fd477cd |
…component (#82784)" This reverts commit 7c678ff. Co-authored-by: malwilley <[email protected]>
#82935) Same as #82784 which got reverted, with the addition of a type failure fix. Adds a copy of overview.tsx (and tests) that is a functional component. I mostly copied it 1 for 1, so the resulting component is not much better than the original. We need a starting place first to start making more improvements. This new component is only rendered if the issue-stream-functional-refactor flag is enabled. We will test this internally before rolling out more widely and deleting the original to reduce risk. The most significant changes were around data fetching and caching, since converting things to useEffects resulted in some bugs and test failures that the original lifecycle methods managed to avoid somehow. For example, we are now using the requestParams object to determine if we should refetch instead of checking against previous props for everything individually. I have also removed issue-stream-performance checks in this version of the component since that complicated things significantly.
Adds a copy of overview.tsx (and tests) that is a functional component. I mostly copied it 1 for 1, so the resulting component is not much better than the original. We need a starting place first to start making more improvements.
This new component is only rendered if the
issue-stream-functional-refactor
flag is enabled. We will test this internally before rolling out more widely and deleting the original to reduce risk.The most significant changes were around data fetching and caching, since converting things to useEffects resulted in some bugs and test failures that the original lifecycle methods managed to avoid somehow. For example, we are now using the
requestParams
object to determine if we should refetch instead of checking against previous props for everything individually.I have also removed
issue-stream-performance
checks in this version of the component since that complicated things significantly.