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

Migrate useSelector and connect to useMutableSource #1792

Conversation

wurstbonbon
Copy link
Contributor

This very rough draft to get the ball rolling and probably too naive. I branched away from remove-connectadvanced to be closer to the final API. This is meant to be a starting point, feel free to ignore it if it doesn't provide any value. Many tests are failing and some of them hopefully give a hint to where things will become problematic.

React testing library does not support React 18 yet and to be able to run the tests one needs to download the package for the PR and install it locally because yarn2 doesn't like URLs without file extension.

@markerikson markerikson changed the base branch from master to feature/remove-connectadvanced August 8, 2021 21:09
@markerikson
Copy link
Contributor

Neat, thanks! Good to have something to use as a starting point - appreciate you doing this!

It'll be a while before I have time to fully dig through this. My focus atm is on trying to write some additional documentation for the "Redux Essentials" tutorial covering how to use RTK Query. After that I should have time to start thinking more seriously about React-Redux v8.

@markerikson
Copy link
Contributor

FYI, the immediate failure is due to no /tmp/react.tgz file existing (which makes sense given that it's running on a random CI VM).

I'd suggest temporarily committing the tarball directly to this branch and referencing that instead.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 9, 2021

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 2204e54:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration

@netlify
Copy link

netlify bot commented Aug 9, 2021

✔️ Deploy Preview for react-redux-docs ready!

🔨 Explore the source changes: 2204e54

🔍 Inspect the deploy log: https://app.netlify.com/sites/react-redux-docs/deploys/61118703cfc3c70007689888

😎 Browse the preview: https://deploy-preview-1792--react-redux-docs.netlify.app

@wurstbonbon
Copy link
Contributor Author

@markerikson I just figured out the correct URL of package

@markerikson
Copy link
Contributor

Well, not sure why the tests didn't run, but at least the size checks passed, which means it built cleanly. Given that this is TS, that's at least a decent first step :)

@markerikson markerikson deleted the branch reduxjs:feature/remove-connectadvanced September 4, 2021 02:07
@markerikson markerikson closed this Sep 4, 2021
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

2 participants