({
store1,
store2,
}: {
readonly store1: Store;
readonly store2: Store;
})
| 407 | ); |
| 408 | |
| 409 | const ContextNestedChild = ({ |
| 410 | store1, |
| 411 | store2, |
| 412 | }: { |
| 413 | readonly store1: Store; |
| 414 | readonly store2: Store; |
| 415 | }) => { |
| 416 | const storeIds = useStoreIds(); |
| 417 | const storeA = useStore('a'); |
| 418 | const storeB = useStore('b'); |
| 419 | return ( |
| 420 | <> |
| 421 | {JSON.stringify(storeIds())} |
| 422 | {storeA() == store1 ? 1 : 0} |
| 423 | {storeA() == store2 ? 1 : 0} |
| 424 | {storeB() == store1 ? 1 : 0} |
| 425 | {storeB() == store2 ? 1 : 0} |
| 426 | </> |
| 427 | ); |
| 428 | }; |
| 429 | |
| 430 | const ContextNestedDifferent = ({ |
| 431 | store1, |
nothing calls this directly
no test coverage detected
searching dependent graphs…