@mittwald/api-client 3.1.56 → 3.1.58

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.md CHANGED
@@ -182,8 +182,8 @@ const api = MittwaldAPIV2Client.newUnauthenticated();
182
182
  const apiReact = MittwaldAPIV2ClientReact.fromBaseClient(api);
183
183
 
184
184
  const ProjectsList = () => {
185
- // apiReact.project.listProjects() returns an AsyncResource that can be "watched"
186
- const projects = apiReact.project.listProjects().watch({
185
+ // apiReact.project.listProjects() returns an AsyncResource that can be "used"
186
+ const projects = apiReact.project.listProjects().use({
187
187
  autoRefresh: {
188
188
  seconds: 30,
189
189
  },