1.2.9 • Published 11 months ago

open-http v1.2.9

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

open-http

An observable request lib. Use for data operations on a centralized object. Some functionalities: Promise, Data in Memory, Paging in Server or in Memory.This lib depends on open-observable

Recommendations

We recommend other libs from the 'open' universe.

Installation

with npm

  npm install open-form

Or with yarn

  yarn add open-form

Setup

In the index.js file, wrap your components with GlobalObservable to recognize the observables

root.render(
    <React.StrictMode>
        <GlobalObservable>
            <App />
        </GlobalObservable>
    </React.StrictMode>
);

Objects

  • Datasource
  • DatasourceProvider
  • InMemoryDatasourceProvider
  • RequestSource

Hooks

  • useRawDatasource - receive a DatasourceProvider and returns a Datasource<TInput, TOutput>
  • useInMemoryDatasourceProvider - receive an array or Subscriber<T[]> and returns a DatasourceProvider
  • useRequest - receive a function with TInput params and returns a Promise
1.2.8

11 months ago

1.2.9

11 months 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.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.13

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

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