lightningrodlabs / acorn

Built with Holochain, Acorn is an open-source, peer-to-peer project management application. It is designed and built as a scrum-alternative, Agile Development Pattern for distributed software development teams. Acorn is currently in Alpha testing phase.
https://acorn.software
100 stars 10 forks source link

unable to create more than one project in dev mode #183

Closed weswalla closed 1 year ago

weswalla commented 1 year ago

when running acorn in dev mode (npm run dev), with the current version of acorn (using holochain 0.0.165) it is unable to create more than one project. When attempting to create a second project, it hangs right after clicking 'create'. image

Force closing the app then reopening it shows the following error in the browser console:

react-dom.development.js:88 Warning: Encountered two children with the same key, `dlpl-key132,45,36,162,124,200,70,250,218,174,0,221,121,47,20,21,133,235,25,69,105,183,97,0,244,191,36,138,47,196,65,8,111,88,128,203,216,189,113[:cell_id_divider:]132,32,36,91,65,178,33,196,50,233,75,168,48,230,139,29,177,168,199,157,190,46,78,34,248,214,74,25,167,48,146,96,87,131,62,114,44,184,143`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in div (created by Dashboard)
    in div (created by Dashboard)
    in div (created by Dashboard)
    in Dashboard (created by Connect(Dashboard))
    in Connect(Dashboard) (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in Router (created by HashRouter)
    in HashRouter (created by App)
    in ErrorBoundary (created by App)
    in App (created by Connect(App))
    in Connect(App)
    in Provider
Connoropolous commented 1 year ago

have you run all of:

npm run electron-install
npm run electron-tsc
npm run web-install
npm run user-data-reset
npm run dev

?

weswalla commented 1 year ago

yep

Connoropolous commented 1 year ago

I see. That got me thinking about something that must have got missed in the update:

https://github.com/lightningrodlabs/acorn/blob/bcd26f5f272168c0078285485ec9349f5cf46464/web/src/routes/Dashboard/Dashboard.connector.ts#L62-L65

Try changing uid to network_seed here.