-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Interactivity API: update TS/JSDocs after migrating to the new store()
API
#56748
Interactivity API: update TS/JSDocs after migrating to the new store()
API
#56748
Conversation
Size Change: +434 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
Flaky tests detected in 118617c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7103870658
|
@DAreRodz is this ready for review? It seems like the e2e tests are failing. |
It is ready, although I'm looking at the errors now. Tests seem to be failing consistently. |
Turns out I included a bug while refactoring the Glad the tests alerted us. 😄 |
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.
Overall, this looks good to me 🙂 I just left some comments that I am unsure how they should be handled. I'll let you decide on them.
@vcanales can we include this PR into 17.2? Thanks in advance! |
…()` API (#56748) * Update tsdocs for `store()` * Fix TS errors in hooks.tsx * Minor changes to context types * Rename DirectiveCallback params to args * Update directive() tsdocs * Add tsdocs for `getContext` and `getElement` * Add jsdocs for `navigate` and `prefetch` * Fix previousScope ref and state * Remove unnecessary `!` operator * Add removed comments for `DirectiveArgs` * Fix example format in `directive()`
Backported to 17.2 RC |
…()` API (#56748) * Update tsdocs for `store()` * Fix TS errors in hooks.tsx * Minor changes to context types * Rename DirectiveCallback params to args * Update directive() tsdocs * Add tsdocs for `getContext` and `getElement` * Add jsdocs for `navigate` and `prefetch` * Fix previousScope ref and state * Remove unnecessary `!` operator * Add removed comments for `DirectiveArgs` * Fix example format in `directive()`
What?
Tracking issue: #53740
Update comments describing the public API of the Interactivity API package. More precisely, these function comments have been updated:
store()
,directive()
getContext()
,getElement()
,navigate()
,prefetch()
Why?
The migration to the new
store()
API introduced breaking changes, making these APIs different.How?
Updating docs to reflect the new API usage.