-
-
Notifications
You must be signed in to change notification settings - Fork 317
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 for components sharing state #571
Conversation
I'll take a look at this shortly. Thanks for the contribution! |
Ultimately I think this content belongs under the "Managing State" section, but since it will probably be some time before I get around to writing more documentation, I'm going to accept this and move these docs around later. Thanks for writing this up! |
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/data.json
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/index.rst
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/data.json
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/data.json
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/data.json
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/data.json
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/data.json
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/app.py
Outdated
Show resolved
Hide resolved
docs/source/adding-interactivity/components-sharing-state/_examples/filterable_list/app.py
Outdated
Show resolved
Hide resolved
…mples/filterable_list/data.json
…mples/filterable_list/data.json
…mples/filterable_list/data.json
…mples/filterable_list/data.json
…mples/filterable_list/app.py
…mples/filterable_list/app.py
…mples/filterable_list/data.json
thanks for the quick review! I will work on it in the weekend |
OK I created the additional example for syncedinputs and moved the docs to managing-state |
It looks like there's just a minor style issue. If you've got your dev environment set up you should be able to just run Also, let me know if you experienced any issues contributing to IDOM while working on Windows. I have a Windows machine I can use to test things out myself so it's very possible there are gaps in the contributor guide. |
ok I fixed the sorting of imports in the examples, it should work now |
OK I had to fix 2 things to make this work and
Very interesting bug. The |
noxfile.py
Outdated
# session.run( | ||
# "docker", | ||
# "build", | ||
# ".", | ||
# "--file", | ||
# "docs/Dockerfile", | ||
# "--tag", | ||
# "idom-docs:latest", | ||
# external=True, | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure what's going wrong here. Were you seeing problems with this locally or in CI? This may be a windows specific problem since I haven't observed any issues in CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got the same error in local and in CI: Could not load /app/src/client/node_modules/fast-json-patch/index.mjs
.
But take a look at line 124
, there is another docker build
in the noxfile.py
, so nox
is building the same docker image 2 times.
I think the first time docker build
creates node_modules
folder in client
and for some reason, this breaks the second docker build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take a look at line 124
That's a separate command for running the docs locally in a docker container during development. It shouldn't be getting run during CI. This command here is testing whether or not the container can be built in CI which should run successfully. If not, then the container probably won't build when we try to deploy it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna see what happens if I uncomment this. If it breaks in CI we can investigate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to be working now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then I will need to figure out how to run it locally w/o breaking. So the actual fix here was upgrading npm and fast-json-patch it seems.
Adding documentation for components sharing state as discussed here: #561
I have added the 2 classic React examples: 1) synced input; 2) filterable list.