8000 Add `Resource` variants of attr+prop `Signal`-based modifiers by armanbilge · Pull Request #158 · armanbilge/calico · GitHub
[go: up one dir, main page]

Skip to content

Add Resource variants of attr+prop Signal-based modifiers - #158

Merged
armanbilge merged 1 commit into
mainfrom
pr/resource-modifiers
Jan 24, 2023
Merged

armanbilge merged 1 commit into
mainfrom
pr/resource-modifiers

Conversation

@armanbilge
@armanbilge armanbilge commented Jan 23, 2023 •
Copy link
Copy Markdown
Owner

Spinning out of #157 (comment). This adds syntax support for e.g.:

div(
  cls <-- fs2.dom.events(dom.window, "resize").map(_ => List("resizeCls")) // Stream[F, ...]
            .holdResource(List("initCls")) // Resource[F, Signal[F, ...]]
)

@armanbilge armanbilge changed the title Add Resource variants of attr+prop modifiers Add Resource variants of attr+prop Signal-based modifiers Jan 23, 2023
@armanbilge
armanbilge merged commit 47e25a8 into main Jan 24, 2023
@armanbilge
armanbilge deleted the pr/resource-modifiers branch January 24, 2023 18:53
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.

2 participants

0