File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Version 0.9.13
4+
5+ - feat: make ` subscribe ` method of ` autorun ` 's return value, call its callback with
6+ the latest value immediately
7+
38## Version 0.9.12
49
510- feat: add the latest value of ` autorun ` to the ` value ` field of its returned value
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " python-redux"
3- version = " 0.9.12 "
3+ version = " 0.9.13 "
44description = " Redux implementation for Python"
55authors = [" Sassan Haradji <sassanh@gmail.com>" ]
66license = " Apache-2.0"
Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ def subscribe(
282282 callback : Callable [[AutorunOriginalReturnType ], Any ],
283283 ) -> Callable [[], None ]:
284284 subscriptions .append (callback )
285+ callback (self .value )
285286
286287 def unsubscribe () -> None :
287288 subscriptions .remove (callback )
You can’t perform that action at this time.
0 commit comments