A light, powerful and quick Reactive State Management, Dependency Injection and Event Handler.
MIT License
Bot releases are visible (Hide)
ReactterWatcher
builder comments for clarity.Full Changelog: https://github.com/2devs-team/reactter/compare/v7.0.0...v7.0.1
Published by CarLeonDev 7 months ago
Reactter.batch
and Reactter.untracked
methods.
Reactter.batch
hepls to execute the given callback
function within a batch operation. A batch operation allows multiple state changes to be grouped together, ensuring that any associated side effects are only triggered once, improving performance and reducing unnecessary re-renders.Reactter.untracked
hepls to execute the given callback
function without tracking any state changes. This means that any state changes that occur inside the callback
function will not trigger any side effects.LifecycleObserver
inteface for event handling of the instance.didUnmount
lifecycle.LogLevel
enum and update defaultLogWriterCallback
signature.UseEffect
performance and readability.
UseEffect.runOnInit
constructor to execute callback effect on initialization.ReactterProvider.lazy
constructor for lazy instance initialization.id
property to ReactterComponent
for debugging information.List<ReactterState>.when
, use context.select
or UseCompute
instead.UseContext
, use UseInstance
instead.UseEvent
, use event shortcuts instead.initialState
and reset
from UseState
..obj
, use Obj
class instead..signal
, use Signal
class instead.InstanceContextBuilder
(InstanceChildBuilder
now) arguments.
context
to first argument on InstanceContextBuilder
(InstanceChildBuilder
now).InstanceContextBuilder
(InstanceChildBuilder
now) of ReactterComponent
, ReactterConsumer
and ReactterProvider
widgets.attachTo
to bind
, detachInstance
to unbind
and instanceAttached
to instanceBinded
.UseEffect
performance and readability.
ObjBase
class.getHashCodeRefAt
method.InstanceContextBuilder
(InstanceChildBuilder
now) arguments.
ReactterComponent
, ReactterConsumer
and ReactterProvider
widgets.ReactterComponent
, ReactterConsumer
and ReactterProvider
widgets.ReactterProvider
code.
Reactter
prefix of the framework classes.ProviderBase
, ProviderImpl
, ProviderElement
and ProviderRef
class.InstanceContextBuilder
to InstanceChildBuilder
and InstanceValueBuilder
to InstanceValueChildBuilder
.ChildBuilder
type.Reactter.getHashCodeRef
method.ReactterZone
and improve ReactterState
implementation.lazyState
, untracked
and batch
tests.BindingZone
class and update references._getInstanceRef
method.ReactterProvider.lazy
tests, update ReactterComponent
tests and add LifecycleObserver
to TestController
.Full Changelog: https://github.com/2devs-team/reactter/compare/v6.2.0...v7.0.0
Published by CarLeonDev 9 months ago
.signal
and .obj
extensions.doneCount
when clear todo completed.Full Changelog: https://github.com/2devs-team/reactter/compare/v6.1.0...v6.2.0
Published by CarLeonDev 10 months ago
ReactterSelector
widget and context.select
method extension.
ReactterSelect
and context.select
help to control the rebuilding of widget tree using a Selector
methods that allows to select a state specific for listening, and return a computed value.ReactterScope
Widget.ReactterProvider.contextOf
doesn't have a type defined, use ReactterScope
to work correctly.updateAsync
from ReactterHook
and ReactterState
.emitAsync
from ReactterEventManager
.List<ReactterState>.when
.ReactterWatcher
has changed when available.UseWen
asynchronously when call markNeedsNotifyDependents
through its changes.ReactterNotifier
to manage events.ReactterProvider
code.context.watch
.WatchState
and SelectComputeValue
types.notifyListeners
of ReactterNotifier
.context.select
and ReactterSelector
test.Full Changelog: https://github.com/2devs-team/reactter/compare/v6.0.2...v6.1.0
Published by CarLeonDev 12 months ago
Full Changelog: https://github.com/2devs-team/reactter/compare/v6.0.1...v6.0.2
Published by CarLeonDev 12 months ago
Full Changelog: https://github.com/2devs-team/reactter/compare/v6.0.0...v6.0.1
Published by CarLeonDev 12 months ago
Args
class which represent one or more arguments.Args1
, Args2
and Args3
classes which represent one, two and three arguments respectively.ArgsX2
and ArgsX3
which represent Args2
and Args3
with the same arguments type.ary
methods for converting Function to Function with generic arguments.Memo
class. It's used for memoizing values returned by a calcutate function.MemoInterceptors
, MemoInterceptor
and MemoInterceptorWrapper
for intercepting and handling various events during the memoization process.AsyncMemoSafe
for removing the memoized value if its futures that throw an error when executed.TemporaryCacheMemo
for removing memoized values from the cache after a specified duration.ReactterInstanceManager
and ReactterInstance
.
ref
parameter to Reactter.get
.Reactter.destory
.InstanceManageMode.builder
, InstanceManageMode.factory
and InstanceManageMode.singleton
enums. These types represent different ways of creating and managing instances.Reactter.getInstanceManageMode
method for getting the instance type of the instance specified.Reactter.isRegistered
method for check if an instance is registered in Reactter.Reactter.lazyBuilder
, Reactter.lazyFactory
, Reactter.lazySingleton
methods to register a builder function to create a new instance in one of the different types.Reactter.builder
, Reactter.factory
, Reactter.singleton
methods to create a new instance in one of the different types.type
property to ReactterProvider
.UseInstance
hook.
UseInstance.register
constructor for registering the builder function when it instantiated.UseInstance.create
constructor to create an instancia when it instantiated.UseInstance.get
constructor to create and/or get an instancia when it instantiated.UseInstance.lazyBuilder
, UseInstance.lazyFactory
, UseInstance.lazySingleton
factories to register a builder function to create a new instance in one of the different types when it instantiated.UseInstance.builder
, UseInstance.factory
, UseInstance.singleton
factories to create a new instance in one of the different types when it instantiated.Reactter.instanceOf
to Reactter.find
.Reactter.register
and Reactter.create
to positional parameter.UseAsyncState.withArg
for using UseAsyncState
with Args
.
resolve
method of UseAsyncState
is used without arguments. Replace with UseAsyncState.withArg
. Its resolve
method allows to use arguments.UseState.initial
and UseState.reset
.
UseEvent
hook.
UseContext
hook.
UseInstance
instead.Reactter.unregister
couldn't deregister the instance builder when the instance is active.Reactter.dispose
to Reactter.offAll
.ContextBuilder
to InstanceBuilder
and InstanceBuilder
to InstanceContextBuilder
.Reactter.lazy
to Reactter.lazyState
.ReactterZone
and structure code of ReactterState
.ReactterInstanceManager
, ReactterInstance
, UseInstance
Reactter.destroy
test.Memo
and MemoInterceptor
test.Args
test.UseAsyncState.withArg
test.UseInstance
test.Full Changelog: https://github.com/2devs-team/reactter/compare/v5.1.2...v6.0.0
Published by CarLeonDev about 1 year ago
ReactterAction
and ReactterActionCallable
.const
keyword for zapp compatibility.Full Changelog: https://github.com/2devs-team/reactter/compare/v5.1.1...v5.1.2
Published by CarLeonDev about 1 year ago
UseEffect
doesn't have context
.Full Changelog: https://github.com/2devs-team/reactter/compare/v5.1.0...v5.1.1
Published by CarLeonDev about 1 year ago
ReactterState
defined into ReactterHook
.lazy
method and make isInstanceBuilding
variable as public.ReactterStateListExtension
with when
method.UseCompute
hook.ReactterConsumer
widget.reactter_lint
.ReactterInstanceNotFoundException
documentation.ReactterInstance
._RegisterHook
to HookRegister
.ReactterStateListExtension
test and other adjustments.ReactterConsumer.builder
required.UseCompute
is disponsed.UseCompute
type on when
method.UseCompute
test and other adjustments.flutter_reactter
package.
src
.ReactterTypes
to types
.engine
was separated into extensions
, framework
and types
.test
.reactter
package.
src
.ReactterTypes
to types
.core
was separated into framework
, objs
, signals
, lifecycle
, types
.test
.ReactterSignalProxy
.Obj
, Signal
to other folder.ReactterWatcher
to the new changes.ReactterNotifyManager
.
ReactterNotifyManager
is no longer used, all its methods were moved to ReactterState
.Lifecycle
enum was move to new file(lifecycle.dart
).Full Changelog: https://github.com/2devs-team/reactter/compare/v5.0.1...v5.1.0
Published by CarLeonDev over 1 year ago
Full Changelog: https://github.com/2devs-team/reactter/compare/v5.0.0...v5.0.1
Published by CarLeonDev over 1 year ago
ReactterContext
and ReactterHookManager
and remove all about it.ReactterContextNotFoundException
to ReactterInstanceNotFoundException
.listenAllHooks
property from ReactterComponent
, use listenAll
.listenHooks
property from ReactterComponent
and ReactterProvider.contextOf
, use listenStates
.context
property from UseAsyncState
, UseContext
, UseEvent
, UseReducer
and UseState
.ReactterAction
, type
is String.ReactterBuilder
and ReactterScope
, replace to build
, StatelessWidget
, StatefulWidget
or any Widget that expose BuildContext
.attachTo
, detachTo
and createState
methods to ReactterState
.hasListener
no depend of ReactterNotifyManager
.Full Changelog: https://github.com/2devs-team/reactter/compare/v4.1.2...v5.0.0
Published by CarLeonDev over 1 year ago
examples
folder to packages/flutter_reactter/example
.Full Changelog: https://github.com/2devs-team/reactter/compare/v4.1.1...v4.1.2
Published by CarLeonDev over 1 year ago
Full Changelog: https://github.com/2devs-team/reactter/compare/v4.1.0...v4.1.1
Published by CarLeonDev almost 2 years ago
Full Changelog: https://github.com/2devs-team/reactter/compare/v4.0.0...v4.1.0
Published by CarLeonDev almost 2 years ago
Obj
.Signal
.ReactterSignalProxy
mixin.ReactterNotifyManager
mixin.ReactterState
mixin.UseEvent
hook.ReactterProvider
.ReactterComponent
or ReactterBuilder
. The instance can be accessed directly from the context(BuildContext
) and just the part belonging to the context is re-built.ReactterWatcher
.Signal
variable in ReactterWatcher
and react when it changed for ReactterWatcher
's widgets rebuild.typedef
innecesary.UseContext
and UseEffect
.ReactterScope
as deprecated. Use any Widget that exposes the BuildContext
like Build
, StatelessWidget
or StatefulWidget
instead.listenHooks
and listenAllHooks
as deprecated. Use listenStates
and listenAll
instead.onInit
from ReactteProvider
and ReactterComponent
.ReactterContext
argument in builder
of ReactterProvider
.ReactterWatcher
test.Full Changelog: https://github.com/2devs-team/reactter/compare/v3.2.0...v4.0.0
Published by CarLeonDev about 2 years ago
UseReducer
hook.ReactterInstanceManager
extension to class.Full Changelog: https://github.com/2devs-team/reactter/compare/v3.1.2...v3.2.0
Published by CarLeonDev about 2 years ago
Reactter.create
.Full Changelog: https://github.com/2devs-team/reactter/compare/v3.1.1...v3.1.2
Published by CarLeonDev over 2 years ago
child
and builder
of ReactterProvider
is not required when use ReactterProviders
.Full Changelog: https://github.com/2devs-team/reactter/compare/v3.1.0...v3.1.1
Published by CarLeonDev over 2 years ago
ReactterProvider.of
.ReactterInstanceManager
's get method create instance when instance didn't create yet.child
and builder
properties.Reactter.delete
named argument to positional argument.Full Changelog: https://github.com/2devs-team/reactter/compare/v3.0.0...v3.1.0