Skip to content

Conversation

@leontalukdar
Copy link
Contributor

Fixes #4766. See issue for details.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@markerikson
Copy link
Contributor

Hmm. Looks like the docs build error is a TS type-checking error with a completely different example on a different page:

12:02:49 PM: TypeScript error in code block in line 16 of /opt/build/repo/website/usage/nextjs.mdx/codeBlock_4/app/StoreProvider.tsx
12:02:49 PM: Cannot assign to 'current' because it is a read-only property.
12:02:49 PM:  11          // Create the store instance the first time this renders
12:02:49 PM:  12          storeRef.current = makeStore();
12:02:49 PM:  13      }
12:02:49 PM:  14      // highlight-end
12:02:49 PM:  15
12:02:49 PM:  16      return <Provider store={storeRef.current}>{children}</Provider>;
12:02:49 PM:  17  }

we'll have to get that sorted out first.

@timdorr
Copy link
Member

timdorr commented Jan 20, 2025

Fixed the issue on master. Too smart for my own good 😆

Thanks!

@timdorr timdorr merged commit d129739 into reduxjs:master Jan 20, 2025
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Minor Statement Fix

3 participants