Releases: houfio/dakpan
Releases · houfio/dakpan
2.3.2
2.3.1
2.3.0
2.2.0
Features
- The good ol' HOC makes a grand return 🚀
- TypeScript types are now exposed ☘️
- Added provider fallback for the initial state 🏭
- Added nullable flag to hooks 🏴
Fixes
- Fixed multiple providers of same type in tree not working correctly
- Fixed actions not regenerating with current state
Other
- Small performance improvements
2.1.0 Alpha 5
Features
- Added nullable flag to hooks 🏴
2.1.0 Alpha 4
Fixes
- Fixed simultaneous state updates
2.1.0 Alpha 3
Features
- Added provider fallback for the initial state 🏭
When creating a dakpan, the initial state is no longer a required variable. Now you can also provide it directly to the provider:
const [CountProvider] = createDakpan<{ count: number }>()({});
const initial = { count: 0 };
function Count() {
return (
<CountProvider value={initial}/>
);
}
2.1.0 Alpha 2
Fixes
- Fixed actions not regenerating with current state
2.1.0 Alpha 1
Fixes
- Fixed multiple providers of same type in tree not working correctly
2.1.0 Alpha 0
Features
- The good ol' HOC makes a grand return 🚀
- TypeScript types are now exposed ☘️
Other
- Small performance improvements