Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update shallow to defaultExport instead of named #1541

Closed

Conversation

Just-Moh-it
Copy link

Summary

The docs had an incorrect example about using shallow, whereby, a named export of shallow was being imported from zustand/shallow. I fixed that to a default export :)

Check List

  • yarn run prettier for formatting code and docs

@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.

Latest deployment of this branch, based on commit 64f6894:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration
Next.js Configuration
@pavlobu/zustand demo Configuration

@sewera
Copy link
Collaborator

sewera commented Jan 13, 2023

I think this named export is on purpose, because all the default exports were deprecated in #1514 (look for src/shallow.ts file).

Therefore, I suggest declining this PR.

@dai-shi
Copy link
Member

dai-shi commented Jan 13, 2023

Yes, default export is deprecated and will be removed. (with a bit of regret, because it's not solely our fault.)
Closing.

@dai-shi dai-shi closed this Jan 13, 2023
@Just-Moh-it Just-Moh-it deleted the fix-default-export-docs-shallow branch January 14, 2023 12:26
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.

None yet

3 participants