Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(forest): properly handle createStore in classList#1286

Open
pijng wants to merge 1 commit intoeffector:masterfrom
pijng:fix-forest-classlist-normalization
Open

fix(forest): properly handle createStore in classList#1286
pijng wants to merge 1 commit intoeffector:masterfrom
pijng:fix-forest-classlist-normalization

Conversation

@pijng
Copy link

@pijng pijng commented Jul 25, 2025

In forect, when creating the css class store with createStore directly — without additional call to restore — the initial value was not being applied correctly to the classList.

The fix creates a new store with the correct initial value to handle updates, ensuring the initial state is properly set and all the further updates to the class store is being applied.

Fixes #965

Conventions

In forect, when creating the css class store with createStore directly — without additional call to restore — the initial value was not being applied correctly to the classList.

The fix creates a new store with the correct initial value to handle updates, ensuring the initial state is properly set and all the further updates to the class store is being applied.

Fixes effector#965
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[forest] classList typings error with Array<Store<string>> as value

1 participant