refreshGraphQL doesn't trigger refresh in Local Dev
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- graphql, typescript
- 领域
- devtools
调研方向
Start by running the attached minReproduce.zip in Local Dev and tracing the lightning/uiGraphQLApi refreshGraphQL entry point; compare the network response with the component's wire update. Done means refreshGraphQL causes the component's wire data and rendered API data to reflect the changed record.
由索引模型根据 Issue 内容生成。
描述
Summary
I've done my best to give you relevant info, but you might need me to grab more details from Devtools or whatever...
In the context of Local Dev, when using GraphQL with the lightning/uiGraphQLApi Wire adapter, a call to refreshGraphQL doesn't update the wire data on the component.
Deploying source to org and using the LWC without Local Dev, we get the expected result: re-query occurs and UI is re-rendered with fresh data.
Steps To Reproduce:
- Create a LWC importing {gql, graphql, refreshGraphQL} from "lightning/uiGraphQLApi" and making an API query
- store 'result' in graphQLqueryResult
- render API data in some way along with a button
- create a method 'refresh' which returns refreshGraphQL(this.graphQLqueryResult) and append to button
- adjust API data on the record. Hit refresh button.
Expected Result
Record data now reflects the change in the updated API wire property
Actual Result
API call is being made (can see it in Network tab) and is returning correct data, but it isn't making its way into the component API wire response.
Additional Information
I struggled to make a minimum reproducible example because when attaching it to a Lightning layout (in this instance, an Account record layout, with an API call against that same record) there was all sorts of funky cache issues going on in Local Dev, but I managed to get the issue to manifest before the page reaches for the cache.
Screenshots:
Logs:
System Information
SF CLI:
{
"architecture": "darwin-arm64",
"cliVersion": "@salesforce/cli/2.60.13",
"nodeVersion": "node-v20.16.0",
"osVersion": "Darwin 24.0.0",
"rootPath": "/Users/alan/.nvm/versions/node/v20.16.0/lib/node_modules/@salesforce/cli",
"shell": "zsh",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.4 (core)",
"@oclif/plugin-commands 4.0.15 (core)",
"@oclif/plugin-help 6.2.12 (core)",
"@oclif/plugin-not-found 3.2.21 (core)",
"@oclif/plugin-plugins 5.4.9 (core)",
"@oclif/plugin-search 1.2.9 (core)",
"@oclif/plugin-update 4.5.9 (core)",
"@oclif/plugin-version 2.2.13 (core)",
"@oclif/plugin-warn-if-update-available 3.1.17 (core)",
"@oclif/plugin-which 3.2.14 (core)",
"@salesforce/cli 2.60.13 (core)",
"apex 3.4.10 (core)",
"api 1.2.2 (core)",
"auth 3.6.62 (core)",
"data 3.6.7 (core)",
"deploy-retrieve 3.12.11 (core)",
"info 3.4.9 (core)",
"lightning-dev 1.3.0 (user) published 18 days ago (Sat Sep 21 2024) (latest is 1.8.0)",
"limits 3.3.32 (core)",
"marketplace 1.2.26 (core)",
"org 4.5.10 (core)",
"packaging 2.8.11 (user) published 3 days ago (Sat Oct 05 2024)",
"schema 3.3.32 (core)",
"settings 2.3.21 (core)",
"signups 2.3.10 (user) published 121 days ago (Sun Jun 09 2024) (latest is 2.5.21)",
"sobject 1.4.38 (core)",
"source 3.5.21 (core)",
"telemetry 3.6.15 (core)",
"templates 56.3.21 (core)",
"trust 3.7.31 (core)",
"user 3.5.31 (core)",
"@salesforce/sfdx-scanner 4.4.0 (user) published 70 days ago (Wed Jul 31 2024) (latest is 4.6.0)",
"sfdmu 4.36.3 (user) published 19 days ago (Fri Sep 20 2024)",
"sfdx-essentials 2.12.0 (user) published 1029 days ago (Wed Dec 15 2021)",
"sfdx-git-delta 5.46.0 (user) published 7 days ago (Wed Oct 02 2024) (latest is 5.47.0)",
"sfdx-hardis 5.0.10 (user) published 5 days ago (Fri Oct 04 2024)",
"texei-sfdx-plugin 2.7.0 (user) published 28 days ago (Wed Sep 11 2024)"
]
}
OS:
MacOS 15.0.1
- 主要语言
- TypeScript
- 星标
- 19
- 派生
- 19
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
salesforcecli/plugin-lightning-dev 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
salesforcecli/plugin-lightning-dev#686 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
salesforcecli/plugin-lightning-dev#627 · 2 条评论 · 1 个 reaction ·
-
BUG P2
难度 3/5 1-2 天 新手友好度 45/100
salesforcecli/plugin-lightning-dev#544 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
salesforcecli/plugin-lightning-dev#456 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
查看 salesforcecli/plugin-lightning-dev 的全部 Issue
相似的 Issue
-
type/bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 95/100
lingdojo/kana-dojo#31593 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 1/5 1-3 小时 新手友好度 90/100
apache/fineract-backoffice-ui#697 ·
维护者通常 1 天内回复
-
good first issue hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 88/100
libredb/libredb-studio#1291 · 1 条评论 ·
维护者通常 1 天内回复
-
bug P1
难度 2/5 1-3 小时 新手友好度 88/100
Yeachan-Heo/gajae-code#6295 · 1 条评论 ·
维护者通常 1 天内回复