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

LAGE-3 Trigger issues list update on title or content change #6

Conversation

nelsondaza
Copy link
Owner

This pull request includes changes to the packages/linear/src/hooks/useDocumentCodes.ts file to enhance the functionality of the useCommentCodes hook and improve the memoization in the useDocumentCodes hook. The most important changes are:

Enhancements to useCommentCodes hook:

  • Added useState and useEffect hooks to manage and update the state of comment codes dynamically using a MutationObserver. This allows the hook to react to changes in the DOM and update the codes accordingly.

Improvements to useDocumentCodes hook:

  • Updated the dependency array of the useMemo hook to include stringified versions of titleCodes and commentCodes, ensuring that memoization is correctly handled when these values change.

refs: LAGE-3

test plan:

qa risk: low

@nelsondaza nelsondaza merged commit aab80c3 into main Nov 9, 2024
@nelsondaza nelsondaza deleted the nelsondaza/lage-3-trigger-issues-list-update-on-title-or-content-change branch November 9, 2024 03:15
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.

1 participant