Skip to content

Commit

Permalink
New Framer Release
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses authored and github-actions[bot] committed Nov 13, 2024
1 parent dcbc96b commit 28aecd4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
22 changes: 15 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions unframer/src/framer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15349,7 +15349,7 @@ function steps(numSteps, direction = 'end',) {
};
}

// https :https://app.framerstatic.com/framer.CGL726TF.mjs
// https :https://app.framerstatic.com/framer.WBWNDTAM.mjs
init_chunk_QLPHEVXG();
import React4 from 'react';
import { startTransition as startTransition2, } from 'react';
Expand Down Expand Up @@ -17318,13 +17318,20 @@ function interactionResponse(options,) {
},);
},);
}
function useAfterPaintEffect(fn, deps, options,) {
useLayoutEffect(() => {
const runAfterPaint = async () => {
await interactionResponse(options,);
fn();
function useAfterPaintEffect(effectFn, deps, opts, useEffectFn = useLayoutEffect,) {
useEffectFn(() => {
const runAfterPaint = async (fn) => {
await interactionResponse(opts,);
return fn();
};
const runPromise = runAfterPaint(effectFn,);
return () => {
void (async () => {
const cleanup = await runPromise;
if (!cleanup) return;
void runAfterPaint(cleanup,);
})();
};
void runAfterPaint();
}, deps,);
}
var noop2 = () => {};
Expand Down

0 comments on commit 28aecd4

Please sign in to comment.