-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
RTK Query: resolve type portability issues #3678
Conversation
…n exporting declarations in a typescript project
… typing when including API reducers
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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 3a323b6:
|
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@markerikson Will this fix be applied to v1.9 as well? If so, when will the next version be released? |
@tdurnford : no, these changes are just against v2.0 . There's too many differences in build setup and configuration to try to backport them to 1.9.x at this point. (Somewhat related: we'd reallllly like people to try out the 2.0 betas and give us feedback on how they work.... :) ) |
@markerikson I'm happy to test betas, but I can't take those to production 😢 Is there a GA target date for 2.0 and do you have migration docs yet? |
@tdurnford No specific target date, unfortunately, and it's probably going to be several months. There's a not-well-specified but "large" amount of stuff that needs to be done across all our libraries so that we can publish them simultaneously. The closest to a known list of stuff we know ought to be done just for RTK itself is in: I did also try to do a skim through the other repos to get a sense of what things look immediately obvious to do, but don't have that list on hand atm. On top of that, there's still a number of open questions:
You also bring up a good point that we need to consider the rest of the docs work as well. The next overall steps I need to do are putting on my PM hat and trying to nail down what the actual remaining scope looks like. I don't want this effort to keep dragging on, and I don't want us to get bogged down chasing one potential feature after another. But given that this is the first major version bump we've ever done for RTK, I also don't know when we might do another one. So, I would rather err on the side of making sure we've covered as many bases as possible. The other complication, of course, is that we're doing this in our spare time. (That is not a complaint - that's an observation). Lenz hasn't had much time to work on Redux since joining Apollo. Ben has done a lot of work building features, but not much on infra. I'm juggling Replay, Redux, other tasks, and trying to have something resembling a life :) (golf, friends, family, down time.) I do want to focus on RTK work over the next few months, but it's all in my free time. With golf season ending, I may be able to put a bit more focus into it. We don't have an actual migration guide written up. The closest to that would be reviewing each of the release notes entries for listed breaking changes - I've tried to be pretty thorough in that regard. In theory, the biggest known breaking changes would be things like removing the object arguments for So, my general suggestion is to literally try bumping your deps, see what compiles and fails, fix TS compilation issues, and see how your tests shake out. |
@markerikson Thank you for the update. I understand that is it important to be thorough when you do a major bump - you don't get very many opportunities and you don't want to be haunted by your choices. I updated one of my side projects to use the new beta version. Overall, the migration was very smooth. I'll be sure to log any bugs or feature requests I come along. In the interim, I understand why you don't want to take the fix into 1.9.x, but do you have a potential mitigation? Our project is heavily dependent on Thank's again and I hope you have plenty time away from your keyboard to enjoy your family and golf while the weather is still nice - very important. |
@tdurnford : yeah, lemme clarify my stance here. I've got enough on my plate that I don't have time to try to backport this right now. Also, there was a lot of fiddly changes around types paths and references to However, if you or someone else can take the time to try backporting the changes to 1.9.x and see if they fix things there, sure, I'll happily accept a PR that improves things. |
@ericanderson I can spend some time looking into it. Can you point me to some of the fiddly PRs that were necessary so I can get a general sense of the requirements? |
Hey, @markerikson, I have opened a draft PR #3728. Still verifying the fix actually works and solves our issue before publishing. Would you mind taking a look. Happy to make updates if needed. |
@markerikson I wanted to check in to see if you've had a chance to take a look at my PR |
@tdurnford : nope, sorry. Haven't had time to do any Redux maintenance work the last couple weeks. I'll try to look at it when I have time, but got too many other things going on right now. |
Copy of #3569 by @eric-crowell , rebased against
v2.0-integration