react-golden-layout icon indicating copy to clipboard operation
react-golden-layout copied to clipboard

Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.

Open Eli-leo opened this issue 7 years ago • 5 comments
trafficstars

I'm trying to use react-golden-layout but I'm getting this error: Cannot update during an existing state transition (such as within render). Render methods should be a pure function of props and state.

Would you please show a full example how to use it?

my code: ` render() {

return (
  <GoldenLayout
    className="goldenLayout"
  >
    <Row>
      { {createGoldenLayoutComponent(IncrementButtonContainer, {
        isClosable: false,
        title: "Foo's Title"
      })} }
    </Row>
  </GoldenLayout>
);

}`

It's saying that I can not use it in the render function. Also where I can pass the config for the golden layout?

Eli-leo avatar Oct 25 '18 10:10 Eli-leo

I have the same issue

AndyOGo avatar Nov 07 '18 16:11 AndyOGo

Same issue. Any updates? Is this still maintained?

alexkreidler avatar Nov 25 '18 19:11 alexkreidler

Same issue...

Exchizz avatar Feb 19 '19 15:02 Exchizz

this repo is not stable , it's not trustable

nimahkh avatar Mar 16 '19 06:03 nimahkh

I ended up using the following branch, it works: https://github.com/Slowki/react-golden-layout/tree/fix/state-transition-update

Exchizz avatar Mar 16 '19 13:03 Exchizz