Svelte components communicate without store / props / context?
How do Svelte components communicate without store / props / context?
✨❓ Svelte Question Time ❓✨
“You have a Svelte question, I have an answer“ 😱😍
Introduction 00:00
Sometimes, Svelte components need to communicate with each other, without using store, props, or context.
Examples 00:43
There are situations where the 2 components are not parent-child or siblings with each other. So, it does not make sense to communicate through props or context. The components may not be sharing the same data as well, so communicate through stores is out of the picture too.
An example of this, is in a e-commerce platform, where the 2 components are the shopping cart and an item card. The 2 components are not parent-child relationship, does not share the common parent (maybe except the root component). The 2 components do not share the same data, shopping cart uses cart data, and item card uses item data, (may have some commonalities, but they come from different API)
So, in this case, how would you notify the shopping
1 view
420
125
6 months ago 23:09:34 1
Learn Svelte – Full Course for Beginners
9 months ago 01:39:23 1
418. DMA, Safari, заголовки, select, темы, JS в PDF, HTML, песочница в V8, CSS-миксины, Figma
11 months ago 00:22:04 1
Svelte 5 Is A Triumph
12 months ago 00:52:43 4
Web Development with Java (#41)
12 months ago 00:12:03 1
Компоненты высшего порядка ReactJS (Higher-order components)
1 year ago 02:54:25 1
Web Development In 2023 - A Practical Guide
1 year ago 00:58:11 24
Tiptap Editor with , Tailwind CSS and Laravel
1 year ago 01:39:06 1
Learn Livewire v3 by building a CRUD App from Scratch
2 years ago 00:08:55 1
ALL NEW 2024 Hyundai Santa Fe SHOCKS The Entire Car Industry!
2 years ago 00:08:03 1
Как написать компонент с TailwindCSS?
2 years ago 00:29:52 1
ТОП 10 вопросов на собеседовании ReactJS
2 years ago 00:09:58 1
Как использовать Компоненты высшего порядка ReactJS
2 years ago 00:05:03 1
来自Обычный программист的视频
2 years ago 00:14:37 1
Part 2 - How To Build A Nuxt 3 Ionic Capacitor Starter App, with Ionic Framework VueJS Components