-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.2.1: Fix recursive fetch depth for ManyToOneRel (#117)
- Loading branch information
1 parent
8a7b641
commit 62ea6f1
Showing
7 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { h, render } from "https://unpkg.com/preact?module"; | ||
import htm from "https://unpkg.com/htm?module"; | ||
|
||
const html = htm.bind(h); | ||
|
||
export function bind(node, config) { | ||
return { | ||
create: (type, props, children) => h(type, props, ...children), | ||
render: (element) => render(element, node), | ||
unmount: () => render(null, node), | ||
}; | ||
} | ||
|
||
export function SimpleButton(props) { | ||
return h( | ||
"button", | ||
{ | ||
id: props.id, | ||
onClick(event) { | ||
props.onClick({ data: props.eventResponseData }); | ||
}, | ||
}, | ||
"simple button" | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters