Skip to content

Commit

Permalink
Merge pull request #281 from justinvos/patch-1
Browse files Browse the repository at this point in the history
Fix 'valueAccessor' spelling to match and add missing 'can'
  • Loading branch information
edemaine committed Dec 18, 2023
2 parents 9edb13b + e0032fe commit 42410d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion langs/en/tutorials/async_lazy/lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ with:
const Greeting = lazy(() => import("./greeting"));
```

This will likely still load too quickly to see. But you add a fake delay if you wish to make the loading more visible.
This will likely still load too quickly to see. But you can add a fake delay if you wish to make the loading more visible.

```js
const Greeting = lazy(async () => {
Expand Down
2 changes: 1 addition & 1 deletion langs/en/tutorials/bindings_directives/lesson.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Solid supports custom directives through the `use:` namespace. This is just a syntactic sugar over `ref`, but is useful in that it resembles typical bindings and there can be multiple bindings on the same element without conflict. This makes it a better tool for reusable DOM element behavior.

A custom directive is a function taking arguments `(element, valueAccesor)`, where `element` is the DOM element with the `use:` attribute, and `valueAccessor` is a getter function for the value assigned to the attribute. As long as the function is imported in scope, you can use it with `use:`.
A custom directive is a function taking arguments `(element, valueAccessor)`, where `element` is the DOM element with the `use:` attribute, and `valueAccessor` is a getter function for the value assigned to the attribute. As long as the function is imported in scope, you can use it with `use:`.

> Important: `use:` is detected by the compiler to be transformed, and the function is required to be in scope, so it cannot be part of spreads or applied to a component.
Expand Down

0 comments on commit 42410d3

Please sign in to comment.