Skip to content

Commit

Permalink
docs: exposition
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Aug 12, 2024
1 parent 3dbdd21 commit af9b763
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/posts/learn.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Furthermore, `async`/`await` is implemented using generator functions. In
`starfx`, not everything we want to `await` is a `Promise`!

There is so much more to why generators are awesome but at the end of the day,
to the end developer, it doesn't really matter that much.
to the end developer, you can treat generators the same as `async`/`await`.

If you are struggling to understand or are getting confused using generator
functions, just use the
Expand Down
19 changes: 15 additions & 4 deletions docs/posts/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ title: Models
description: State management in starfx
---

Since data normalization is a first-class citizen inside `starfx` we custom
built a react database for your front-end web apps. Our store is most similar to
`redux` but with a couple of important differences.
Once core component of an MVC framework is the Model.

Creating a front-end database starts first with creating a schema.
Since data normalization is a first-class citizen inside `starfx`, we built a
custom react database for front-end web apps. Like a backend MVC framework, we
want to think of managing the FE store like managing a database. So while
thinking about models as separate entities, you create all your models by
creating a single schema.

Managing models in `starfx` leverages two primary concepts: schema and store.

The store is a single, global, and reactive object that was built to make
updating views easy. It is essentially an event emitter with a javascript object
attached to it.

Because the goal of this library is to create scalable web apps, we want users
to create all their models at the same time inside of a single schema.

0 comments on commit af9b763

Please sign in to comment.