2.2.1 β€’ Published 16 days ago

x-view-model v2.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
16 days ago

x-view-model

binding view and view-model

Introduction

x-view-model is a solution that make react hooks support MVVM without introduce any third-party libriries and aims to separates UI from business logic and provide immutable data & global state management, memory management and persistent data management and provide intuitive API.

Using x-view-model will bring a lot of convenience as follows:

  • πŸ’Ό Provide global and local state management, without introducing reducer or redux and other state management solutions;
  • 🌲 Provide global cache and persistent data storage management;
  • 🎩 It can make the business code more organized, maintainable and testable, and the division of responsibilities is clearer.
  • 🍰 Effectively avoid the problem of too many states that need to be managed inside the component, and simplify the useState and setState writing methods in the form of objects.
  • 🍷 There is no need to care about hooks inside the class-based ViewModel, so you can focus more on business logic development.
  • πŸ‘‹ It can realize global data update and cross-component data transfer without useReducer or context
  • 🌲 Different stores are divided according to the key, the view component will not respond to the state changes of the unused stores, and the performance overhead can be canceled
  • 🍳 ViewModel will provide basic lifecycle functions, which is more convenient than useEffect to handle asynchronous functions
  • πŸ– ViewModel will automatically trigger memory recycling according to the life cycle of react hooks, and memory management is more efficient
  • πŸ₯’ No need to use useCallback to deal with component re-rendering problems caused by avoiding function reference changes.
  • 🍰 After calling the updater to update, the latest state value can be obtained synchronously
  • πŸ‘‹ It can realize fine-grained update of the attribute value of the object, and can realize immutable data

Document

X-VIEW-MODEL λ¬Έμ„œ

Furture Feature

  • API 고도화
  • λ¬Έμ„œ 고도화
  • ViewFlow or ViewModel ν…ŒμŠ€νŠΈ κΈ°λŠ₯
2.2.1

16 days ago

2.2.0

22 days ago

2.1.8

22 days ago

2.1.7

22 days ago

2.1.4

1 month ago

2.1.6

1 month ago

2.1.5

1 month ago

2.1.2

2 months ago

2.1.1

2 months ago

2.1.3

2 months ago

2.1.0

2 months ago

2.0.3

2 months ago

2.0.5

2 months ago

2.0.4

2 months ago

2.0.7

2 months ago

2.0.6

2 months ago

2.0.9

2 months ago

2.0.8

2 months ago

2.0.2

3 months ago

2.0.1

3 months ago

2.0.0

3 months ago

1.4.6

3 months ago

1.4.5

3 months ago

1.4.4

3 months ago

1.4.3

3 months ago

1.4.2

3 months ago

1.4.1

3 months ago

1.4.0

3 months ago

1.4.7

3 months ago

1.3.7

3 months ago

1.3.6

3 months ago

1.3.9

3 months ago

1.3.8

3 months ago

1.3.5

3 months ago

1.3.4

3 months ago

1.3.3

3 months ago

1.3.2

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.0

3 months ago

1.2.8

3 months ago

1.2.7

3 months ago

1.2.6

3 months ago

1.2.5

3 months ago

1.2.4

3 months ago

1.2.3

3 months ago

1.2.2

3 months ago

1.2.1

3 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.0.19

4 months ago

1.1.0

4 months ago

1.0.18

4 months ago

1.0.17

4 months ago

1.0.16

4 months ago

1.0.15

4 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.12

10 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago