aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lustre.gleam
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-08-20 07:20:49 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-08-20 07:20:49 +0100
commit00f258dc7a305fe683d473aa6c6e526fa0b68d9c (patch)
tree0521fa2c647127589e435724de031936226d5778 /lib/src/lustre.gleam
parent88b71b747490f97d4e123e908e66f461ab122e4a (diff)
downloadlustre-00f258dc7a305fe683d473aa6c6e526fa0b68d9c.tar.gz
lustre-00f258dc7a305fe683d473aa6c6e526fa0b68d9c.zip
:sparkles: Add a util for checking if a component name has already been registered.
Diffstat (limited to 'lib/src/lustre.gleam')
-rw-r--r--lib/src/lustre.gleam5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/src/lustre.gleam b/lib/src/lustre.gleam
index ec04f3e..2585a5b 100644
--- a/lib/src/lustre.gleam
+++ b/lib/src/lustre.gleam
@@ -253,3 +253,8 @@ pub fn start(
pub fn is_browser() -> Bool {
False
}
+
+@external(javascript, "./lustre.ffi.mjs", "is_registered")
+pub fn is_registered(_name: String) -> Bool {
+ False
+}