andrewdavey / immutable-devtools

Chrome Dev Tools custom formatter for Immutable-js values
BSD 3-Clause "New" or "Revised" License
661 stars 29 forks source link

installDevTools(immutable) returns undefined. #18

Closed kjr247 closed 8 years ago

kjr247 commented 8 years ago

Note that I also tried updating chrome. I will say that both import statements are valid as they both log out correct looking data for immutable and installDevTools from these two lines.

import immutable from 'immutable';
import installDevTools from 'immutable-devtools';

Yet when I log them out to install it, it's undefined such that:

console.log('installDevTools', installDevTools(immutable));
const stuff = installDevTools(immutable);
console.log('thingers', stuff);

always logs undefined.

And the code below always just spits out unformatted immutablejs objects.

const thing = {
  'thing':"oop",
  'mop':"glop",
  'weeks': [
    {goop:"date"},
    {goop:"date"},
    {goop:"date"},
    {goop:"date"}
  ],
  'used': 'meep'
};

const schA = Map (thing);

console.log(schA);
langpavel commented 8 years ago

installDevTools should not return anything, it just instruct Chrome to use formatters.