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

Api redesign #17

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Api redesign #17

merged 2 commits into from
Aug 28, 2018

Conversation

curran
Copy link
Member

@curran curran commented Aug 28, 2018

Closes #15

Summary of changes:

  • Api expects reactive functions as functions with a property dependencies, an array of strings.
  • The library no longer accepts a comma-separated string of dependencies.

Example:

import Topologica from 'topologica';

const fullName = ({firstName, lastName}) => `${firstName} ${lastName}`;
fullName.dependencies = ['firstName', 'lastName'];

const state = Topologica({ fullName });

@monfera
Copy link

monfera commented Aug 28, 2018

comment added to #15 (comment)

@curran curran merged commit 2a82b58 into master Aug 28, 2018
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.

2 participants