effector / inspector

Inspector for effector stores
https://npmjs.com/effector-inspector
26 stars 6 forks source link

Catch the "unexpected token u in JSON at position 0" error when calling an event without any params #27

Closed MiiZZo closed 3 years ago

MiiZZo commented 3 years ago

Minimal example:

  import { attachLogger  } from "effector-logger/attach";
  import { createInspector } from 'effector-inspector';

  const app = createDomain()
  attachLogger(app);

  createInspector();

  const event = app.event();

  event();

Throwing error line of code: https://github.com/effector/inspector/blob/master/src/index.ts#L86

sergeysova commented 3 years ago

Fixed in https://github.com/effector/inspector/releases/tag/v0.7.4