Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfgp committed Jul 7, 2024
1 parent fbc9b1f commit b60f3ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Fabulous/Attributes.Components.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module ComponentAttributes =
// Insert the new child into the UI tree
targetColl.Insert(index, unbox view)

// Trigger the mounted event
// TODO: Trigger Mounted function for all children - Dispatcher.dispatchEventForAllChildren itemNode widget Lifecycle.Mounted
// Trigger the mounted event
// TODO: Trigger Mounted function for all children - Dispatcher.dispatchEventForAllChildren itemNode widget Lifecycle.Mounted

| WidgetCollectionItemChange.Update(index, widgetDiff) ->
let childNode = node.TreeContext.GetViewNode(box targetColl[index])
Expand All @@ -52,8 +52,8 @@ module ComponentAttributes =
// Replace the existing child in the UI tree at the index with the new one
targetColl[index] <- unbox view

// Trigger the mounted event for the new child
// TODO: Trigger Mounted function for all children - Dispatcher.dispatchEventForAllChildren nextItemNode newWidget Lifecycle.Mounted
// Trigger the mounted event for the new child
// TODO: Trigger Mounted function for all children - Dispatcher.dispatchEventForAllChildren nextItemNode newWidget Lifecycle.Mounted

| _ -> ()

Expand All @@ -70,7 +70,7 @@ module ComponentAttributes =
targetColl.Add(unbox view)

Attributes.defineWidgetCollection name applyDiff updateNode

/// Define an attribute for EventHandler
let inline defineEventNoArg name ([<InlineIfLambda>] getEvent: obj -> IEvent<EventHandler, EventArgs>) : SimpleScalarAttributeDefinition<unit -> unit> =
let key =
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous/Lifecycle.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ module ComponentLifecycle =
let Mounted = createAttribute "Mounted"

/// Store an event that will be triggered when a Widget has been unmounted from the UI tree
let Unmounted = createAttribute "Unmounted"
let Unmounted = createAttribute "Unmounted"

0 comments on commit b60f3ab

Please sign in to comment.