-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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 Rewrite] Meta-Issue: Rewrite Examples #3917
Comments
@markerikson I think I could help to rewrite some examples, but I need to know how fast they must be rewritten. |
@markerikson Hi, quick question: for the first task of deciding which examples can be removed, you wanna decide between all the examples or just between the three you mentioned or between the similar ones? Anyway:
Ultimately, I think that all the other examples are ok to keep! As of now I'm about to refactor the counter example, count me on 😃 |
@giacomocerquone I think it's worth reviewing all the examples, deciding what the original intended purpose was, and then deciding what the overlap is and what should be removed. I do actually think the
Haven't looked at I would honestly just go replace https://github.com/reduxjs/cra-template-redux Flow is dead, effectively. I would delete that one. On the other hand, I would consider having a The other thing to consider is that I've built out a larger real-world-ish app as the example for the "Essentials" tutorial, here: https://github.com/reduxjs/redux-essentials-example-app and this TodoMVC-based app for the "Fundamentals" tutorial: https://github.com/reduxjs/redux-fundamentals-example-app We're going to keep those repos because I want them to be independently cloneable so people can try out the projects themselves, but we should probably either link to them on the "Examples" docs page, or copy-paste the final versions of the code into projects in the @zpwebbear : No particular timeline for this. It's just something that crossed my mind yesterday as a thing that needs to be done at some point. |
All clear, tbh don't like the idea of copying stuff though. For the So I'm about to prepare a PR for:
|
Actually instead of linking the stuff, we could also copy the |
yes, or even simpler, symlinks: https://stackoverflow.com/a/4660048/2809729 |
I don't think you can symlink across repositories, unless you require users always clone both repositories in the same place relatively, but they that would probably break on GitHub. GitHub supports submodules, though I'm not sure about subtrees as they're newer. |
@nickmccurdy clear enough for me. Let's just link them in the README, once some contributor, or directly mark, will have tested this solution (if he likes it) we will change it! |
I'm working on real-world |
This is made redundant by #3565. I would still like to move the examples out of this repo, as they add a ton of weight to the test process and a lot of noise to the git history. |
I'd forgotten that that PR existed. Biggest issue is that there are external links pointing to those folders. At a bare minimum, we would need to replace all of those folders' contents with a README that points to the new location. |
We can submodule it. |
@markerikson I would prefer to rewrite the |
I didn't write it, but apart from the #3919 which is reorganizing the whole examples folder (and I still don't know if it will have to be closed), I'd like to refactor the "todos" |
Well, clearly this effort stalled and went nowhere. We had a couple PRs filed, like #3922, but tbh I never got around to looking at it. I'd really like to clean up the examples folder, nuke some dead examples, and update any others to show RTK. I noticed we don't even have a TS CodeSandbox on the "TS Getting Started" page. I'm going to update all the example READMEs right now to say "this is outdated", replace the existing From there... honestly I have no great attachment to CRA at this point and I'm also open to converting them to Vite or something :) But more than that I want examples that show RTK, not legacy Redux. Anyone want to help redo the examples (basically from scratch)? |
Hello dear contributor , I would like to contribute in this repo , specially this issue , would you please guide me , or at least assign me some task , to start help . Thank you in advance |
It might be an idea to set up sandpack so the code sandbox examples can stay in the documentation repository as single source of truth |
We don't actually need Sandpack - CSB can be pointed to a folder in the repo directly, and that's what we already do for both the Redux and RTK docs: <iframe class="codesandbox"
src="https://codesandbox.io/embed/github/reduxjs/redux/tree/master/examples/counter/?runonclick=1"
sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
></iframe> |
This is a tracking issue to cover all tasks related to rewriting our existing example projects.
Tasks
todos
vstodomvc
vstodos-flow
)The text was updated successfully, but these errors were encountered: