Skip to content

Releases: suhaotian/use-one

v1.4.3

25 Apr 07:51
Compare
Choose a tag to compare

Revert: 'use client'

v1.4.2

25 Apr 02:52
Compare
Choose a tag to compare
  • Feat: add use client to Provider.tsx component
  • Chore(README): Add SSR application persist storage chapter

v1.4.1

23 Apr 02:49
Compare
Choose a tag to compare
  • Feat: export emitPersistReady and onPersistReady utils

Full Changelog: v1.4.0...v1.4.1

v1.4.0-beta.4

22 Apr 06:35
Compare
Choose a tag to compare
  • Fix: isReady always false after clean

Full Changelog: v1.4.0-beta.3...v1.4.0-beta.4

v1.4.0-beta.3

22 Apr 05:29
Compare
Choose a tag to compare
  • Feat: add usePersist hook to persist any hooks's state

Full Changelog: v1.4.0-beta.2...v1.4.0-beta.3

v1.4.0

22 Apr 10:03
Compare
Choose a tag to compare

Beta finally end, publish v1.4.0 🥳

New features compare to v1.1.1:

  • Feat: Add persistStore to persist your store
  • Feat: Add usePersist to persist react hook's state
  • Chore(README): README reorganize and code reorganize, now it's more make sense 💪

Full Changelog: v1.1.1...v1.4.0

v1.4.0-beta.2

21 Apr 09:39
Compare
Choose a tag to compare
  • Refactor: remove eventemitter3 deps. Thanks @arkatsy ❤️ #3

What's Changed

Full Changelog: v1.4.0-beta.1...v1.4.0-beta.2

v1.4.0-beta.1

21 Apr 04:19
Compare
Choose a tag to compare
  • Fix: persistStore wrong when cahce data is null
  • Refactor(examples): refactor examples use new style

v1.4.0-beta.0

19 Apr 12:06
Compare
Choose a tag to compare
  • Feat: persistStore support React Native / Expo

Usage:

import { create, persistStore, wrapState, isClient } from 'use-one';

const initialState = wrapState({ count: 0 }); // -> { ready: false, count: 0 }
const [use, store] = create(initialState);

console.log('isClient', isClient);
isClient && persistStore(store, { key: '@CACHE_KEY', debounce: 100 });

v1.3.0-beta.3

19 Apr 10:27
Compare
Choose a tag to compare
  • Feat: add transform: state => state to persistStore's options