Pawan Gangwani

Results 46 comments of Pawan Gangwani

> Can't you just use a plain Jotai atom to derive state from the value atom in the field? I can use. Needed to know if it will automatically do...

@jaredLunde : here you go : [code-sandbox-example-produce](https://codesandbox.io/p/sandbox/form-atoms-v2-validate-on-dependent-state-pscr8p?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cm0uv54uv00063b6if7q9x9tm%2522%252C%2522sizes%2522%253A%255B100%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cm0uv54uv00023b6ipo0vsupp%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cm0uv54uv00033b6ie6ltnufy%2522%257D%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cm0uv54uv00053b6i9y50kgzd%2522%257D%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cm0uv54uv00023b6ipo0vsupp%2522%253A%257B%2522id%2522%253A%2522cm0uv54uv00023b6ipo0vsupp%2522%252C%2522activeTabId%2522%253A%2522cm13hd6pj005f3b6i2m1q3poj%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm0uv54uv00013b6io5u7s5s9%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Findex.tsx%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%252C%257B%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522src%252FApp.tsx%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A112%252C%2522endLineNumber%2522%253A112%252C%2522startColumn%2522%253A5%252C%2522endColumn%2522%253A5%257D%255D%252C%2522id%2522%253A%2522cm13hd6pj005f3b6i2m1q3poj%2522%252C%2522mode%2522%253A%2522temporary%2522%257D%255D%257D%252C%2522cm0uv54uv00053b6i9y50kgzd%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm0uv54uv00043b6i5odmdgcv%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%257D%255D%252C%2522id%2522%253A%2522cm0uv54uv00053b6i9y50kgzd%2522%252C%2522activeTabId%2522%253A%2522cm0uv54uv00043b6i5odmdgcv%2522%257D%252C%2522cm0uv54uv00033b6ie6ltnufy%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522cm0uv54uv00033b6ie6ltnufy%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D) ![Screenshot 2024-09-15 at 5 08 20 PM](https://github.com/user-attachments/assets/50f1c5a5-20ca-43b0-abab-a91cddd7c71c) Noticed couple of things: 1. I was not able to add non-field fixed value say status:...

One more attempt : [code-sandbox-produce-2](https://codesandbox.io/p/sandbox/form-atoms-v2-nested-fields-example-lirr6w?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cm0uv5i8y00063b6irrr9yxed%2522%252C%2522sizes%2522%253A%255B100%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cm0uv5i8y00023b6i0g7be205%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cm0uv5i8y00033b6iamdiocof%2522%257D%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cm0uv5i8y00053b6ihmywr810%2522%257D%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cm0uv5i8y00023b6i0g7be205%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm0uv5i8y00013b6ipirbonji%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Findex.tsx%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522cm0uv5i8y00023b6i0g7be205%2522%252C%2522activeTabId%2522%253A%2522cm0uv5i8y00013b6ipirbonji%2522%257D%252C%2522cm0uv5i8y00053b6ihmywr810%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm0uv5i8y00043b6ifqr1kpjc%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%257D%255D%252C%2522id%2522%253A%2522cm0uv5i8y00053b6ihmywr810%2522%252C%2522activeTabId%2522%253A%2522cm0uv5i8y00043b6ifqr1kpjc%2522%257D%252C%2522cm0uv5i8y00033b6iamdiocof%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522cm0uv5i8y00033b6iamdiocof%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D) Additionally , based on learning from this , I can make some progress in https://github.com/form-atoms/list-atom/issues/7 Thanks Again @jaredLunde

> No, the derived state doesn't belong in your form if it's not a form value. You should just need a plain atom that uses the same Jotai store as...

> > No, the derived state doesn't belong in your form if it's not a form value. You should just need a plain atom that uses the same Jotai store...

Very good initiative, much needed, was always betting this. Great to see this milestone. Way to go !!! I would like to know if there are sub_agents in multi agents...