feat(useMutationObserver): add takeRecords
function
#3480
Analysis complete
Summary
This pull request adds a takeRecords
function to the useMutationObserver
hook, which lets users access the mutation records without affecting the observer. It also adds a test case for this feature in index.test.ts
.
Walkthrough
-
Implement and expose
takeRecords
function foruseMutationObserver
hook (link,link) -
Add test case for
takeRecords
function inindex.test.ts
(link)Poem
Oh we're the coders of the
useMutationObserver
hook
We watch the changes in the DOM with a keen eye
We added a feature to take the records in a jiffy
And we test it well with Vue and Jest, so sing aye aye
Emoji
✨✅📝
Include these descriptions in your pull request description by including the following marker tags:
copilot:all
: all the content, in one gocopilot:summary
: a one paragraph summary of the code changescopilot:walkthrough
: a step by step walkthrough of the code changescopilot:poem
: a poem about the code changes!copilot:emoji
: three emoji that capture the changes
Feedback is welcome. Simply add a comment to this PR of the form /copilot feedback [your comments here]
.
Details
Copilot for PRs is a limited technical preview from GitHub Next.
It's aim is to make it easier to write pull request descriptions by providing automatically generated suggestions based on the code changes.
To find out more go to https://githubnext.com/projects/copilot-for-pull-requests or come and chat with us on Discord
File | Status | Duration |
---|---|---|
Summary & Walkthrough | ✅ Finished | 23.6 seconds |
packages/core/useMutationObserver/index.test.ts | ✅ Finished | 12 seconds |
packages/core/useMutationObserver/index.ts | ✅ Finished | 14.1 seconds |