Skip to content

Commit d8386b2

Browse files
committed
style: lint
1 parent f12b49e commit d8386b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/core-concepts/fundamentals.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,21 @@ Many Ionic components use [CustomEvent](https://developer.mozilla.org/en-US/docs
5353
Developers can use standard events such as `click` as they normally would. However, many events emitted within a component's [shadow root](../reference/glossary.md#shadow) will be [retargeted](https://dom.spec.whatwg.org/#retarget) to the host element. This may result in multiple `click` handlers executing even if the user only clicked once. As a result, developers should rely on Ionic's events to be properly informed of state changes on Ionic components. Ionic's events are prefixed with `ion` to avoid collisions with standard events. Each component's documentation page has a list of available events that developers can listen for in their applications.
5454

5555
## Properties
56-
[Properties (`@Prop`)](https://stenciljs.com/docs/properties) are custom attributes exposed publically on an HTML element. They allow developers to pass data to a component to render or otherwise use.
56+
57+
[Properties (`@Prop`)](https://stenciljs.com/docs/properties) are custom attributes exposed publically on an HTML element. They allow developers to pass data to a component to render or otherwise use.
5758

5859
### Virtual Properties
60+
5961
In Ionic components, virutal properties are a special category of properties that are used to define inputs to a component without the reactivity that typically comes with `@Prop` decorated properties in Stencil.
6062

6163
Unlike `@Prop` inputs:
64+
6265
- Virtual properties do not trigger a re-render when updated.
6366
- They cannot be mutated to produce side effects in the component lifecycle.
6467
- They are not tracked for changes and do not participate in Stencil's reactive data flow.
6568

6669
#### When to Use Virtual Properties
70+
6771
Virtual properties are intended for use cases where you need to pass static or read-only data into a component, like configuration options or values that won't change during the component's lifecycle. They offer a lightweight alternative when you don't need Stencil's change detection or DOM updates.
6872

69-
Because they are not reactive, updates to virtual properties after initial load will not affect the rendered output of the component.
73+
Because they are not reactive, updates to virtual properties after initial load will not affect the rendered output of the component.

0 commit comments

Comments
 (0)