goatslacker / goatslacker/alt

Why are Datasources attached to a store?

Open
#702 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

I couldn't find a similar question anywhere, sorry if this was already brought up.

It seems weird to me that Datasources are attached to a store in such a way that I have to call the store to execute actions. Isn't that not in-line with how Flux is designed?

Example flow when using a datasource:
Component -> Store -> Datasource -> Action -> Store -> Component

I thought with Flux ideally you'd have:
Component -> Action/Datasource -> Action -> Store -> Component

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Datasource, Store, Action, and Component flow described in the issue and compare it with the stated Flux model. The issue does not identify files, tests, or a concrete change, so its intended outcome and definition of done need clarification before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.