1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

Update syntax for Github. (#14845)

This commit is contained in:
Todd Martin
2025-05-30 15:31:44 -04:00
committed by GitHub
parent eba22cf5f8
commit 721657a5c3

View File

@@ -43,12 +43,9 @@ on any component.
The persistence layer ensures that the popup will open at the same route as was active when it The persistence layer ensures that the popup will open at the same route as was active when it
closed, provided that none of the lifetime expiration events have occurred. closed, provided that none of the lifetime expiration events have occurred.
:::tip Excluding a route > [!TIP]
> If a particular route should be excluded from the history and not persisted, add
If a particular route should be excluded from the history and not persisted, add > `doNotSaveUrl: true` to the `data` property on the route.
`doNotSaveUrl: true` to the `data` property on the route.
:::
### View data persistence ### View data persistence
@@ -85,13 +82,10 @@ const mySignal = this.viewCacheService.signal({
mySignal.set("value") mySignal.set("value")
``` ```
:::note Equality comparison > [!NOTE]
> By default, signals use `Object.is` to determine equality, and `set()` will only trigger updates if
By default, signals use `Object.is` to determine equality, and `set()` will only trigger updates if > the updated value is not equal to the current signal state. See documentation
the updated value is not equal to the current signal state. See documentation > [here](https://angular.dev/guide/signals#signal-equality-functions).
[here](https://angular.dev/guide/signals#signal-equality-functions).
:::
Putting this together, the most common implementation pattern would be: Putting this together, the most common implementation pattern would be: