adds reconcileWithKeys#2280
Conversation
|
|
Ah, I see what's going on, it's failing a test (as expected), but then its throwing an unrelated error, that put me off, and I wasn't understanding. I think I can continue writing tests.. |
|
It's a cool Idea. There have been a few design variations on this. Not completely sure which makes the most sense. Mostly wonder if the changes to Stores in 2.0 will have bigger bearing on what the design ultimately is. |
|
Thanks for the PR. This is a real use case, and it’s one that came up a few times around I’m going to close this as stale for Solid 2, though. Stores changed significantly in 2.0, and keyed reconciliation is now centered around the current I also don’t think this exact API is the shape I’d want to carry forward. The nested If we revisit this, I’d rather do it as a fresh Solid 2 design. The current |
Summary
A suggestion to add
reconcileWithKeysthat @katywings and I have requested in the past. In some situations you want to use reconcile with objects that have keys differently named toid.How did you test this change?
Hehe, Im running into an issue when trying to write tests for it, when I run
npm run testI get this error:It works in the playground, so I'm lost at to whats going on, any ideas? 🙏🏼
https://playground.solidjs.com/anonymous/9167e413-e0b2-45bf-942a-3ca2153c0416
References
https://discord.com/channels/722131463138705510/780502110772658196/971305532034011156
https://discord.com/channels/722131463138705510/780502110772658196/1278247899616247808