@wcstack/fetch 4.6.2 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ja.md CHANGED
@@ -73,6 +73,8 @@ npm install @wcstack/fetch
73
73
  </ul>
74
74
  ```
75
75
 
76
+ `value` は最初の応答まで `null` で、束縛は付くときにそれを state へ書くので、種の `users: []` はすぐに置き換わります。`for:` は `null` では何も描きません。リストを読む getter は `this.users ?? []` と書きます。
77
+
76
78
  これがデフォルトモードです:
77
79
 
78
80
  - `url` を接続
package/README.md CHANGED
@@ -73,6 +73,8 @@ If another request is already in flight, it aborts the previous one.
73
73
  </ul>
74
74
  ```
75
75
 
76
+ `value` is `null` until the first response, and the binding writes it into the state when it attaches, so the seed `users: []` is replaced at once. `for:` renders nothing for `null`; a getter that reads the list writes `this.users ?? []`.
77
+
76
78
  This is the default mode:
77
79
 
78
80
  - connect `url`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/fetch",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "Declarative fetch component for Web Components. Framework-agnostic async data fetching via wc-bindable-protocol.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",