Closed kaguya3222 closed 1 year ago
Issue is not reproducing at the latest effector-logger
and effector
versions
https://codesandbox.io/s/billowing-feather-7hy6wr?file=/src/index.js
As of the recent '0.14.0' release, 'effector-logger' no longer includes 'effector-inspector' and integration with redux-devtools, so all related issues, including anything involving JSON.stringify
, are gone.
See the release notes for details https://github.com/effector/logger/releases/tag/v0.14.0
Versions
node: 14.19.1
Reproduction
Codesandbox (react + effector): https://codesandbox.io/s/serene-frog-rvcke7?file=/src/App.js
Steps to reproduce:
SyntaxError: Unexpected token u in JSON at position 0
What is expected?
Error is not expected because when I'm using
createStore
andcreateEvent
from 'effector' - there is no error.Important
I observe this error only when using the chaining operator
?.
isstore.map
. For example, if we change this line:const $playerName = $player.map((player) => player?.name);
toconst $playerName = $player.map((player) => player ? player.name : null);
- there is no error