Skip to content

Instantly share code, notes, and snippets.

@alexandrepiveteau
Created July 4, 2021 20:17
Show Gist options
  • Select an option

  • Save alexandrepiveteau/327a5eafe7c349c48093de983e5a9ad3 to your computer and use it in GitHub Desktop.

Select an option

Save alexandrepiveteau/327a5eafe7c349c48093de983e5a9ad3 to your computer and use it in GitHub Desktop.
Additional builders for `MutableSite` with mutable backing model
inline fun <R, M, reified T, reified C> mutableSite(
identifier: SiteIdentifier,
initial: M,
projection: TwoWayProjection<M, T, C>,
vararg events: Pair<EventIdentifier, T>,
transform: (M) -> R,
): MutableSite<T, R> = TODO()
inline fun <R, M, reified T> mutableSite(
identifier: SiteIdentifier,
initial: M,
projection: OneWayProjection<M, T>,
vararg events: Pair<EventIdentifier, T>,
transform: (M) -> R,
): MutableSite<T, R> = TODO()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment