GithubHelp home page GithubHelp logo

Comments (20)

roblabla avatar roblabla commented on April 20, 2024 2

For those looking for this, PR #149 fixes it. I have an updated fork of this PR here : https://github.com/roblabla/react-devtools

from react-devtools.

cbenz avatar cbenz commented on April 20, 2024 1

Just asked myself the same question and found that with the new devtools extension, the $r global variable helps a lot: even if the sidebar still shows the internals of the immutable variables, I can select the component and type in the console:

$r.props.myImmutableProp.toJS()

or even use right-click "Store as a global variable" on the immutable prop/state then:

$tmp.toJS()

This is a temporary solution!

from react-devtools.

kristian-puccio avatar kristian-puccio commented on April 20, 2024 1

https://github.com/andrewdavey/immutable-devtools

from react-devtools.

ntucker avatar ntucker commented on April 20, 2024 1

@kristian-puccio that's great for console, but doesn't work on react-devtools

from react-devtools.

BinaryMuse avatar BinaryMuse commented on April 20, 2024

Agreed, this would be really nice. Not sure if others agree, but I feel like in an ideal world, we could integrate application code into the React devtools (e.g. to make them understand arbitrary data structures)

from react-devtools.

tiye avatar tiye commented on April 20, 2024

After reading this new post I really want this to be fixed
http://facebook.github.io/react/docs/advanced-performance.html
Feeling bad seeing this:
data

from react-devtools.

0x80 avatar 0x80 commented on April 20, 2024

+1!

from react-devtools.

cassus avatar cassus commented on April 20, 2024

+1

from react-devtools.

cesarandreu avatar cesarandreu commented on April 20, 2024

+1

from react-devtools.

sophiebits avatar sophiebits commented on April 20, 2024

"+1" comments do not help us. Please stop.

from react-devtools.

ntucker avatar ntucker commented on April 20, 2024

+500

from react-devtools.

felixakiragreen avatar felixakiragreen commented on April 20, 2024

👍

This is so tedious to open every time:

screen shot 2015-08-28 at 12 49 15

from react-devtools.

gregberge avatar gregberge commented on April 20, 2024

Can we expect a support soon? We can handle it with "store as global variable", but should be great to have the "toJS" displayed directly in the panel. I can work on a PR if you want.

from react-devtools.

tiye avatar tiye commented on April 20, 2024

It reminds of this thing https://github.com/binaryage/cljs-devtools ClojureScript is inventing it own Console panel to display its data nice and fine.

from react-devtools.

kristian-puccio avatar kristian-puccio commented on April 20, 2024

Yeah I was wondering if some of the code is transferable

On 6 March 2016 at 21:38, Nathaniel Tucker [email protected] wrote:

@kristian-puccio https://github.com/kristian-puccio that's great for
console, but doesn't work on react-devtools


Reply to this email directly or view it on GitHub
#52 (comment)
.

from react-devtools.

wmill avatar wmill commented on April 20, 2024

+1

from react-devtools.

gaperton avatar gaperton commented on April 20, 2024

Not sure if others agree, but I feel like in an ideal world, we could integrate application code into the React devtools (e.g. to make them understand arbitrary data structures)

@BinaryMuse Of course, I agree. Thus, it's done in PR #469 . That's how hooking into dev tools looks like on the example of Date class (which is actually implemented as a part of this PR to resolve #388 ).

if (__REACT_DEVTOOLS_GLOBAL_HOOK__) {
  const { addInnerStateInspector } = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  if (typeof addInnerStateInspector === 'function') {
    addInnerStateInspector( Date, x => ({
       local : `${ x.toDateString() } ${ x.toTimeString() }`,
       iso : x.toISOString(),
       timestamp : x.getTime(),
    });
  }
}

Welcome to the ideal world :). If it will be accepted, I will implement support for ImmutableJS data structures.

from react-devtools.

gaearon avatar gaearon commented on April 20, 2024

#459 should address this. Can anyone give it a try?

from react-devtools.

gaearon avatar gaearon commented on April 20, 2024

Closing as fixed by #459.
Will be out soon.

from react-devtools.

gaearon avatar gaearon commented on April 20, 2024

Immutable (or any iterable, really) support is implemented in the latest version.

from react-devtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.