logger icon indicating copy to clipboard operation
logger copied to clipboard

Do not show SyntheticEvent object

Open popuguytheparrot opened this issue 4 years ago • 1 comments

Hi.

Сan replace SyntheticEvent with a string symbol because logging an entire SyntheticEvent object causes lags in the browser.

Current behavior: image

Expected: ☄️effector event * → editRate('SyntheticEvent ')

popuguytheparrot avatar Jun 22 '20 10:06 popuguytheparrot

I think configure method can be expanded to adjust logging details for some units Something like this:

const event = createEvent<HeavyPayload>()
configure(event, { payloadMap: heavyPayload => `HeavyPayload${heavyPayload.discriminator}` })

SQReder avatar Oct 15 '21 09:10 SQReder