amis Mapping使用localstorage存储options报错,列表中会卡顿

6za6bjd0  于 2023-02-04  发布在  其他
关注(0)|答案(1)|浏览(202)
描述问题:

Mapping使用localstorage报错,列表中会卡顿

截图或视频:

[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: 'Reaction[t.render()]' Error: Minified React error #185 ; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at mh (npm_351b202.js:675:251)
at Object.enqueueForceUpdate (npm_351b202.js:555:87)
at E.forceUpdate (npm_351b202.js:334:326)
at e.onInvalidate (npm_351b202.js:2570:3579)
at e.runReaction (npm_351b202.js:989:19978)
at nt (npm_351b202.js:989:21686)
at et (npm_351b202.js:989:21322)
at npm_351b202.js:989:21816
at Rk (npm_351b202.js:683:44)
at et (npm_351b202.js:989:21795)

可以的话,尽可能提供截图或视频来补充描述你的问题...

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
    sdk
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    2.6.0
  3. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "body": {
    "type": "mapping",
    "value": "sad",
    "source": "${ls:aaa}"
  }
}

localstorage
aaa  =
[
      {
        "value": "happy",
        "label": "开心",
        "color": "red"
      },
      {
        "value": "sad",
        "label": "悲伤",
        "color": "blue"
      },
      {
        "value": "*",
        "label": "其他",
        "color": "gray"
      }
    ]
  1. 操作步骤
    配置schema后,console会报错误信息
qco9c6ql

qco9c6ql1#

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

相关问题