From 0c6116276b7981bbb5c55cd58834438d1dded6f5 Mon Sep 17 00:00:00 2001 From: Mateusz Ostafil Date: Thu, 14 Nov 2024 17:57:34 +0100 Subject: [PATCH] Update docs/content/guides/2.alokai-essentials/1.alokai-next-js/8.add-to-cart.md Co-authored-by: Matt Maribojoc --- .../2.alokai-essentials/1.alokai-next-js/8.add-to-cart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guides/2.alokai-essentials/1.alokai-next-js/8.add-to-cart.md b/docs/content/guides/2.alokai-essentials/1.alokai-next-js/8.add-to-cart.md index 45549ec2e5..1fa81389d0 100644 --- a/docs/content/guides/2.alokai-essentials/1.alokai-next-js/8.add-to-cart.md +++ b/docs/content/guides/2.alokai-essentials/1.alokai-next-js/8.add-to-cart.md @@ -12,7 +12,7 @@ Just getting the data from the API is not enough. Ecommerce websites are feature ## Create Sdk context and hook So far, we've been using `getSdk` to access the SDK on the server side. We can also use it on the client side. -however it would result in sdk reinitialization on every call. We don't want that for the sake of performance, so we'll +However, this result in the SDK being reinitialized on every call. For better performance, we'll create a context and hook to hold SDK instance. First we need to export `Sdk` type from `sdk.ts`. Add this line at the end of the file.