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

Ability to create terms #2

Open
joehoyle opened this issue Jun 27, 2016 · 1 comment
Open

Ability to create terms #2

joehoyle opened this issue Jun 27, 2016 · 1 comment

Comments

@joehoyle
Copy link
Owner

No description provided.

@pdewouters pdewouters self-assigned this Jun 30, 2016
@pdewouters
Copy link

pdewouters commented Jul 1, 2016

Process:
If it were React web, I would:

  • create a route /:taxonomy/create => {CreateTerm}
  • CreateTerm Container component with a mapDispatchToProps, and calls an createTerm action passing the taxonomy (category/term or custom tax) and the term name from the TextInput.
  • a taxonomy reducer which has a case for TERM_CREATE, and returns a new state with the new term appended to the collection
  • a functional component to display the new term form
  • a createTerm action which dispatches the TERM_CREATE action, which calls an api method to persist the term to the storage. called by the "save" button

How does this translate to React Native and this particular implementation

@pdewouters pdewouters removed their assignment Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants