Skip to content

Commit

Permalink
Update docs/content/guides/2.alokai-essentials/1.alokai-next-js/8.add…
Browse files Browse the repository at this point in the history
…-to-cart.md

Co-authored-by: Matt Maribojoc <[email protected]>
  • Loading branch information
mateuszo and mattmaribojoc authored Nov 14, 2024
1 parent cc30f44 commit 0c61162
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0c61162

Please sign in to comment.