Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Oct 31, 2022
1 parent 60b1074 commit be59aa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ using `{}` for substitution:
Parameters must be converted to a [JsonElement](https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/),
for example by using the [json](https://docs.kweb.io/api/kweb-core/kweb.util/json.html) extension property.

Note that if you need an empty JavaScript object just use `{ }` instead of `{}`, which will prevent
it from being interpreted as a parameter.

## Function caching and preloading

Kotlin automatically caches JavaScript functions in the browser for efficiency. If the function is
Expand Down

0 comments on commit be59aa1

Please sign in to comment.