import {createEffect, attach} from 'effector'
const original = createEffect({
handler: params => {
console.log('Original effect called with', params)
},
})
const created = attach({
effect: original,
mapParams: params => {
console.log('Created effect called with', params)
return {wrapped: params}
},
})
created('HELLO')