Destinia / Vision

0 stars 0 forks source link

Grid won't update when redux is updated from uploaded layouts #11

Closed IanChen83 closed 6 years ago

IanChen83 commented 6 years ago

Procedures to reproduce

1, switch to branch navbar

  1. npm run start
  2. click download to save a snapshot of the current layout.
  3. randomly change layout
  4. click upload to load the previous saved layout

A possible solution

Use versioning: feed key={timestamp} so that React will be forcibly re-create the grid. This may solve to problem (we have to try...)

Related issues

here and here

Destinia commented 6 years ago

If we reset whole layout to initial state then upload new layout?

Btw create a clean all button?

Destinia commented 6 years ago

Position fixing encounter the same problem

Related Issue

here

IanChen83 commented 6 years ago

Check out the "forced update" hack in https://github.com/STRML/react-grid-layout/issues/222

Btw this library just doesn't work the react way imo....

IanChen83 commented 6 years ago

UPDATE: Add clear button to the navbar (commit bb4e938)