From 2db4dfb84ea60c49f3184b708a9bb22ee7d48ccf Mon Sep 17 00:00:00 2001 From: Guilherme Rodrigues Date: Fri, 18 Jun 2021 14:26:30 -0300 Subject: [PATCH] docs: remove merge leftover and random heading (#8) Two small changes that might have been introduced in error. PS: What an amazing product and technology you're building. One of those you think "Damn I could have had that idea!". Cheers! --- docs/MENTAL_MODEL.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/MENTAL_MODEL.md b/docs/MENTAL_MODEL.md index a425bf7874e..303434c08bc 100644 --- a/docs/MENTAL_MODEL.md +++ b/docs/MENTAL_MODEL.md @@ -106,7 +106,6 @@ expect(userEntity.$state).toEqual({ }); ``` -<<<<<<< HEAD `Component`s are similar to `Entity`s except they are associated with a specific UI host-element, and a `Component`'s `Props` can change over time. ## DOM Centric @@ -119,7 +118,7 @@ Here are some common ways Qwik framework keeps state in DOM/HTML. - `
`: The `::user` attribute declares a `UserEntity` provider on this element's injector which points to the location where the `Entity` can be lazy loaded from. - `
`: The dehydrated, serialized form of a `UserEntity` with `Props: {id: 'some_user_id'}` and `State: {fullName: "Joe Someone", age: 20}`. - ``: A entity binding to a `Component`. This tells Qwik that if the `State` of `UserEntity ` with `EntityKey`: `user:some_user_id` changes, the component `` will need to be re-rendered. -- # ``: The `on:click` attribute notifies Qwik framework that the component is interested in `click` events. The attribute points to the location where the click handler can be lazy-loaded from. +- ``: The `on:click` attribute notifies Qwik framework that the component is interested in `click` events. The attribute points to the location where the click handler can be lazy-loaded from. `Component`s are similar to `Entity`s except they are associated with a specific UI host-element, and `Component`'s `Props` can change over time. ## DOM Centric