• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kamilkisiela/loona:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kamilkisiela/loona

开源软件地址(OpenSource Url):

https://github.com/kamilkisiela/loona

开源编程语言(OpenSource Language):

TypeScript 83.1%

开源软件介绍(OpenSource Introduction):

Loona

CircleCI Join the community on Spectrum

Loona is a state management library built on top of Apollo Client. It brings the simplicity of managing remote data with Apollo, to your local state. Instead of maintaining a second store for your local data with tools like Redux, MobX or NGRX, use Loona to keep data in just one space and make it a single source of truth.

With Loona you get all the benefits of Apollo, like caching, offline persistence and more. On top of that you gain all the other benefits like stream of actions, better sepatation between mutation and store updates.

UI Frameworks

Loona works with React and Angular:

Documentation

All of the documentation for Loona including usage articles and helpful recipes lives on loonajs.com.

Read about Loona

Features

  • Single store - Keep your remote and local data in just one space and make it a single source of truth.
  • Separation of concerns - Loona helps you to keep every piece of your data flow separated.
  • Benefits of Apollo - You get all the benefits of Apollo, like caching, offline persistence and more.
  • Works on Mobile - Works out of the box with React Native and NativeScript.

Concept

Loona can be described by few core concepts. First two of them are related to GraphQL:

  • Queries - ask for what you need.
  • Mutations - a way to modify your remote and local data.
  • Store - a single source of truth of all your data.

It also uses a concept of:

  • Actions - declarative way to call a mutation or trigger a different action
  • Updates - modify the store after a mutation happens

By having it all, Loona helps you to keep every piece of your data's flow separated.


Contributing

This project uses Lerna.

Bootstraping:

yarn install

Running tests locally:

yarn test

Formatting code:

yarn format

This project uses TypeScript for static typing. You can get it built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Sponsor @kamilkisiela on GitHub Sponsors · GitHub发布时间:2022-06-13
下一篇:
babyfish-ct/graphql-ts-client: Typescript DSL for GraphQL.发布时间:2022-06-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap