- Improve LSP hint.
- Handle Emitter.stream error better.
- Fix a build performance issue.
- Change watcher build mechanism to improve performance.
- [Breaking] Deprecate group (.arg). See #21 for detail.
- DefaultCreatorObserver now has a few configs to control what to log.
- DefaultCreatorObserver is default to disabled in release mode for better performance.
- Use throwWithStackTrace for better debug log.
- [Breaking] Group creator name now takes arguments.
Before:
final tabCreator = Creator.arg1<Tab, String>((ref, userId) => 'instagram',
name: 'tab');
After:
final tabCreator = Creator.arg1<Tab, String>((ref, userId) => 'instagram',
name: (userId) => 'tab_$userId');
- [Breaking] ref.set and ref.update now only work for Creator. Use ref.emit to set Emitter.
Before:
ref.set(someEmitter, Future.value(someNewValue));
After:
ref.emit(someEmitter, someNewValue);
- Improve error logs.
- Add ref.emit to set emitter state directly.
- Fix an issue when null is the first emitted value.
- Add onDispose to observer. It defaults to do nothing though.
- Fix a minor issue about reducer's default name.
- Documentation improvements.
- Add more extension methods.
- Ref.read should not dispose creators with keepAlive set.
- Add Ref.readSelf so creator can have memory.
- Allow Creator to set its dependency.
- Fix an issue related to defining creator as local variable.
- Use creator_core since package name flutter_creator is not available.
- Initial version.