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

Basic onClick functionality for rendered structuredLang #8

Merged
merged 11 commits into from
Apr 17, 2017

Conversation

saser
Copy link
Owner

@saser saser commented Apr 16, 2017

This PR implements what seems to be correct functionality for updating the state of the web application when constructors are clicked.

  • When a constructor that does have a trace is clicked, the state of the web application is updated to keep track of what trace was clicked, as well as in what language.
  • When a constructor without a trace is clicked, the state of the web application changes to indicate that no trace is "active".

saser added 11 commits April 16, 2017 21:59
Note that the actual dispatch function is not injected, yet, but it will
be trivial to substitute later.
We still get warnings, though, since the helper components do not
recieve `createOnClick`, so they cannot pass it to their recursive calls
to <StructuredExp />.
We still get boatloads of warnings though, since they have only been
injected into these components, but they are not actually used.
We are still not using it anywhere, but we do not get any prop type
failures anymore, so I assume the injections are working.
Had forgotten about stopping the propagation, but that was easily fixed.
In some other branch, I had changed it to include the `lang` property,
but apparently that branch hasn't been merged.
Woohoo, this seems to work flawlessly! (Here's to hoping I didn't jinx
it by writing that.)
It it not the most graceful way, but it is better than what was before.
@saser
Copy link
Owner Author

saser commented Apr 17, 2017

Just had another look at this, looks good. Merging.

@saser saser merged commit 1676201 into master Apr 17, 2017
@saser saser deleted the structlang-onclick branch April 25, 2017 13:01
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.

1 participant