Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

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

Open
Eli-leo opened this issue Oct 25, 2018 · 5 comments

Comments

@Eli-leo
Copy link

Eli-leo commented Oct 25, 2018

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?

@AndyOGo
Copy link

AndyOGo commented Nov 7, 2018

I have the same issue

@alexkreidler
Copy link

Same issue. Any updates? Is this still maintained?

@Exchizz
Copy link

Exchizz commented Feb 19, 2019

Same issue...

@nimahkh
Copy link

nimahkh commented Mar 16, 2019

this repo is not stable ,
it's not trustable

@Exchizz
Copy link

Exchizz commented Mar 16, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants