baidu / baidu/amis

trackExpression会导致页面渲染两次

Open
#15,775 1 comment 0 reactions 0 assignees View on GitHub
need confirm needs-triage
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

当我在一个page里添加office-viewer和initapi时,因为返回的数据是多个对象和数组的混合,但是对象能正常显示,数组会不显示,所以添加了trackExpression,但是又出现新问题,office-viewer的文档渲染了两次,这个是为什么,怎么样能解决这个问题

sdk v6.11.0

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported page with office-viewer, initapi, mixed objects and arrays, and trackExpression on SDK v6.11.0. Trace the rendering behavior around this configuration and compare the array display with the duplicate document render; done means the array displays without rendering office-viewer twice.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.