Skip to content

Commit

Permalink
Merge branch 'latest' into taefi/fix-signals-dx-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
taefi authored Dec 20, 2024
2 parents 68722b6 + 11e1044 commit 4aabf89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions articles/hilla/guides/routing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ Overrides the route path configuration. Uses the same syntax as the `path` prope
`loginRequired: boolean`::
For applications using authentication, requires user authentication for accessing the view.

`skipLayouts: boolean` (Since V24.6)::
Set to `true` to skip all the layouts wrapping for the view. Useful for cases such as the login view that often should not be wrapped in the main layout.

`rolesAllowed: readonly string[]`::
For applications using authentication, the array of user roles that are allowed to access the view.

Expand Down
6 changes: 6 additions & 0 deletions articles/hilla/lit/guides/reactive-endpoints.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,10 @@ Be informed when the Flux has no more messages to send.
[methodname]`context()`::
Bind to the context, which allows the application automatically to close it when the view is detached.

[methodname]`onSubscriptionLost()`::
Called when the connection is restored, but there's no longer a valid subscription. If the callback returns `ActionOnLostSubscription.RESUBSCRIBE`, the subscription will be re-established by connecting to the same server method again. If the callback returns `ActionOnLostSubscription.REMOVE`, the subscription will be forgotten. This is also the default behavior if the callback is not set or if it returns `undefined`.

[methodname]`onConnectionStateChange()`::
Called when the subscription state changes. The callback receives an event of type `FluxSubscriptionStateChangeEvent` that contains the new state. The possible states are defined as enumerated values of `CONNECTING`, `CONNECTED`, and `CLOSED`.

// end::content[]

0 comments on commit 4aabf89

Please sign in to comment.