bvaughn / react-resizable-panels

https://react-resizable-panels.vercel.app/
MIT License
3.99k stars 144 forks source link

Add note about `autoSaveId` #434

Closed jordiup closed 2 days ago

jordiup commented 2 days ago

hi @bvaughn,

i spent a couple hours debugging panel size persistence,

only to discover that i was using id instead of autoSaveId

it would be good if this was more clear in the readme

cheers :)

great library

vercel[bot] commented 2 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-resizable-panels ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 17, 2024 5:26am
bvaughn commented 2 days ago

I'm sorry to hear that you lost time debugging this. I don't think it should be the first FAQ question (based on how often it has come up) but I guess adding it seems reasonable. It would need to be done in more than just the file you modified though, so I've just done it myself in fa58630e0ba09070f6977ce0ab036588a8749ce4. Cheers