2.3.4 β€’ Published 1 year ago

x-view-model v2.3.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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.3

1 year ago

2.2.2

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.3.0

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.4

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.4.7

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.19

2 years ago

1.1.0

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago