Skip to content

Commit f51be83

Browse files
shethjknhage
andauthored
Update packages/commerce-sdk-react/README.md
Co-authored-by: Katia Hage <k.n.hage@salesforce.com> Signed-off-by: Jainam Sheth <99490559+shethj@users.noreply.github.com>
1 parent 7056b6f commit f51be83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/commerce-sdk-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ transformSDKClient<T>(
558558
559559
With the introduction of the optional `apiClients` prop and support for custom SDK client injection, `commerce-sdk-react` now provides robust error handling for missing clients. If you attempt to use a query or mutation hook for a client that was not initialized or passed to the `CommerceApiProvider`, a clear error will be thrown.
560560
561-
For example, if you call a hook like `useShopperProducts` but did not provide a `shopperProducts` client in your `apiClients` prop, you will see an error message such as:
561+
For example, if you call a hook like `useShopperProducts` but did not provide a `shopperProducts` client in your `apiClients` prop, you will see an error message similar to this error.
562562
563563
```text
564564
Missing required client: shopperProducts. Please initialize shopperProducts class and provide it in CommerceApiProvider's apiClients prop.

0 commit comments

Comments
 (0)