Skip to main content
InterviewHubPRO
Section Overview
Q33

Question 33 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

66%
Astro Islands & SSR (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Cross-Island State Synchronization with Nano Stores.

senior LevelCode ExampleSystem Design

In Simple Words: Using deep computed stores in Nano Stores:

typescript
import { computed } from 'nanostores';
import { cartItems } from './cart';

export const cartTotal = computed(cartItems, (items) =>
  items.reduce((sum, item) => sum + item.price, 0)
);