We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://ssr.vuejs.org/zh/guide/data.html#%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%95%B0%E6%8D%AE%E9%A2%84%E5%8F%96-client-data-fetching
// 我们只关心非预渲染的组件 // 所以我们对比它们,找出两个匹配列表的差异组件 let diffed = false const activated = matched.filter((c, i) => { return diffed || (diffed = (prevMatched[i] !== c)) })
其中这段代码的含义似乎是找到第一个变更的组件后返回其自身以及后续所有组件。 为什么要这样筛选而不是只筛选出存在差异的组件呢。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://ssr.vuejs.org/zh/guide/data.html#%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%95%B0%E6%8D%AE%E9%A2%84%E5%8F%96-client-data-fetching
其中这段代码的含义似乎是找到第一个变更的组件后返回其自身以及后续所有组件。 为什么要这样筛选而不是只筛选出存在差异的组件呢。
The text was updated successfully, but these errors were encountered: