Skip to content

Commit 39e2902

Browse files
committed
Remove component_ and release as patch (it's broken and unused)
1 parent ac4319e commit 39e2902

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Halo is a [Halogen](https://github.com/purescript-halogen/purescript-halogen)-inspired interface for React.
44

5-
It is available as a hook: `useHalo`; for building entire components there is: `component` and `component_`.
5+
It is available as a hook: `useHalo`; for building entire components there is `component`.
66

77
## Documentation
88

@@ -15,9 +15,9 @@ Update the additions in your `packages.dhall`:
1515
```dhall
1616
let additions =
1717
{ react-halo =
18-
{ dependencies = [ "aff", "event", "free", "freeap", "react-basic-hooks", "refs" ]
18+
{ dependencies = [ "aff", "event", "free", "freeap", "react-basic-hooks", "refs", "unsafe-reference" ]
1919
, repo = "https://github.com/robertdp/purescript-react-halo.git"
20-
, version = "v1.2.0"
20+
, version = "v1.2.1"
2121
}
2222
}
2323
```

src/React/Halo.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Data.Tuple.Nested (type (/\), (/\)) as TupleNested
1515
import Effect.Aff.Class (liftAff) as Class
1616
import Effect.Class (liftEffect) as Class
1717
import React.Basic.Hooks (Component, JSX) as React
18-
import React.Halo.Component (ComponentSpec, HookSpec, UseHalo, component, component_, useHalo) as Halo
18+
import React.Halo.Component (ComponentSpec, HookSpec, UseHalo, component, useHalo) as Halo
1919
import React.Halo.Internal.Control (HaloAp, HaloM, fork, hoist, hoistAp, kill, props, subscribe, subscribe', unsubscribe) as Halo
2020
import React.Halo.Internal.Eval (EvalSpec, defaultEval, mkEval) as Halo
2121
import React.Halo.Internal.Types (ForkId, Lifecycle(..), SubscriptionId) as Halo

src/React/Halo/Component.purs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,3 @@ component name { initialState, eval, render } =
5555
React.component name \props -> React.do
5656
state /\ send <- useHalo { props, initialState, eval }
5757
pure (render { props, state, send })
58-
59-
-- | Build a propless component by providing a name and Halo component spec.
60-
component_ :: forall state action. String -> ComponentSpec Unit state action Aff -> Effect JSX
61-
component_ name spec = flap (component name spec) unit

0 commit comments

Comments
 (0)