Skip to content

Commit c96687c

Browse files
committed
re-add blankstate
1 parent efe1a3c commit c96687c

File tree

1 file changed

+11
-0
lines changed
  • typescript/packages/lookslike-high-level/src/spells

1 file changed

+11
-0
lines changed

typescript/packages/lookslike-high-level/src/spells/fetcher.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ export default behavior({
7474
))
7575
.commit(),
7676

77+
blankState: select({ self: $.self, url: $.url, form: $.form })
78+
.match($.self, "url", $.url)
79+
.match($.self, subview('form'), $.form)
80+
.not(q => q.match($.self, "my/request", $._))
81+
.render(({ self, url, form }) => (
82+
<div title="Effect Demo" entity={self}>
83+
{form}
84+
<h1>Ok</h1>
85+
</div>
86+
)).commit(),
87+
7788
onReset: select({ self: $.self, event: $.event, request: $.request })
7889
.match($.self, "~/on/reset", $.event)
7990
.match($.self, "my/request", $.request)

0 commit comments

Comments
 (0)