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

Chore/better testing #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Chore/better testing #47

wants to merge 3 commits into from

Conversation

peterchappy
Copy link
Contributor

Gave isolate a log, instead of it being a no-op.

Also turned unstable_handleError to componentDidCatch as casium uses React 16.

@CLAassistant
Copy link

CLAassistant commented Apr 17, 2018

CLA assistant check
All committers have signed the CLA.

@nateabele
Copy link
Collaborator

@peterchappy Do you remember if we parked this for some reason?

@@ -182,7 +182,7 @@ export const container: <M>(def: ContainerDef<M>) => Container<M> = withEnvironm
*/
export const isolate = <M>(ctr: Container<M>, opts: any = {}): IsolatedContainer<M> => {
const stateManager = opts.stateManager && always(opts.stateManager) || (() => new StateManager());
const env = create({ dispatcher: nthArg(2), effects: new Map(), log: () => {}, stateManager });
const env = create({ dispatcher: nthArg(2), effects: new Map(), log, stateManager });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with making this configurable through opts, but changing the default behavior is just going to create a bunch of console noise during testing.

@peterchappy
Copy link
Contributor Author

peterchappy commented Jun 6, 2018 via email

nateabele added a commit that referenced this pull request Feb 14, 2019
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.

3 participants