React-grid-layout: ReactGridLayout mutates props on widget resize

Created on 3 Mar 2020  路  5Comments  路  Source: STRML/react-grid-layout

When adding a new item to the dashboard and resizing it immediately, props will be mutated here. When using a library like immer, the app will crash with the following exception:

Uncaught TypeError: Cannot assign to read only property 'w' of object '#<Object>'
  at ReactGridLayout.onResize (ReactGridLayout.js:614)

This is very similar to #1063 , but it's affecting another part of the code base (and is triggered by a different user action).

I will have a look into this and provide another fix.

stale

Most helpful comment

Any progress on this?

All 5 comments

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days

The issue isn't stale. I'll try to look back into my PR in the next days.

Any news on this?

Any progress on this?

Was this page helpful?
0 / 5 - 0 ratings