dashboard/frontend/node_modules/motion-dom/dist/es/effects/prop/index.mjs

10 lines
277 B
JavaScript
Raw Normal View History

2025-12-16 08:16:27 +09:00
import { createEffect } from '../utils/create-effect.mjs';
const propEffect = /*@__PURE__*/ createEffect((subject, state, key, value) => {
return state.set(key, value, () => {
subject[key] = state.latest[key];
}, undefined, false);
});
export { propEffect };