MCPcopy Index your code
hub / github.com/element-plus/element-plus / rAF

Function rAF

packages/test-utils/tick.ts:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11// in order to test transitions, we need to use
12// await rAF() after firing transition events.
13export const rAF = async () => {
14 return new Promise((res) => {
15 requestAnimationFrame(() => {
16 requestAnimationFrame(res)
17 })
18 })
19}

Callers 15

notify.test.tsxFile · 0.90
tooltip.test.tsxFile · 0.90
select.test.tsFile · 0.90
cascader.test.tsxFile · 0.90
drawer.test.tsFile · 0.90
form-item.test.tsxFile · 0.90
form.test.tsxFile · 0.90
table.test.tsFile · 0.90
menu.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

openPanelFunction · 0.72