cssinjs / cssinjs/jss

[jss-expand] Observables not respected properly

Open
#742 9 comments 0 reactions 0 assignees View on GitHub
complexity:moderate docs enhancement
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

Using TC39-compliant observables from Knockout:

```js
const observable = ko.observable('normal')
animation: {
name: 'anim',
duration: '0.25s',
direction: observable,
}
```

One would expect the result to be `anim 0.25s 123` but instead it's `anim 0.25s [Object object]`.

Contributor guide

Open the contributing guide

Research direction

The issue names the jss-expand subsystem but provides no file or test path. Reproduce the Knockout observable example and inspect how jss-expand processes the animation direction value. Done means the observable is respected and the generated result uses the expected direction value instead of [Object object].

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.