From 2a0ed809cdb99da18fa6d32d20697843c281855b Mon Sep 17 00:00:00 2001 From: Greg Littlefield Date: Thu, 26 Sep 2024 15:04:30 -0700 Subject: [PATCH] Fix newline rendering in mermaid diagram --- doc/null_safety/null_safe_migration.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/null_safety/null_safe_migration.md b/doc/null_safety/null_safe_migration.md index a1c756fbd..b87294d0d 100644 --- a/doc/null_safety/null_safe_migration.md +++ b/doc/null_safety/null_safe_migration.md @@ -176,24 +176,24 @@ title: Should My Prop Be Required? --- flowchart TD HasDefault== No ==> NotDefaulted - NotDefaulted((Is it set for \nevery invocation?))-- No --> End_Optional_No_Public_Api_Check + NotDefaulted((Is it set for
every invocation?))-- No --> End_Optional_No_Public_Api_Check NotDefaulted-- Yes ---> PublicAPICheck - HasDefault((Does the prop have \na default value?))== Yes ==> Defaulted - Defaulted((Where is the value \ndefaulted?))--> ClassDefault + HasDefault((Does the prop have
a default value?))== Yes ==> Defaulted + Defaulted((Where is the value
defaulted?))--> ClassDefault Defaulted--> LocalDefault - ClassDefault(["defaultProps getter\n(Class Component)"])--> PublicAPICheck - LocalDefault(["local var\n(Function Component)"])--> End_Optional_No_Public_Api_Check + ClassDefault(["defaultProps getter
(Class Component)"])--> PublicAPICheck + LocalDefault(["local var
(Function Component)"])--> End_Optional_No_Public_Api_Check subgraph Public API Check - PublicAPICheck((Is the prop \npublic API?))-- Yes --> PublicAlwaysSpecified - PublicAlwaysSpecified((Is the prop mixed \nin by any other \ncomponent?))-- Yes --> End_Optional + PublicAPICheck((Is the prop
public API?))-- Yes --> PublicAlwaysSpecified + PublicAlwaysSpecified((Is the prop mixed
in by any other
component?))-- Yes --> End_Optional PublicAlwaysSpecified-- No --> End_Required PublicAPICheck-- No --> End_Required end - End_Optional_No_Public_Api_Check[/"Make it optional\nSomeType? propName;"\] - End_Optional[/"Make it optional\nSomeType? propName;"\] - End_Required[/"Make it required\nlate SomeType propName;"\] + End_Optional_No_Public_Api_Check[/"Make it optional
SomeType? propName;"\] + End_Optional[/"Make it optional
SomeType? propName;"\] + End_Required[/"Make it required
late SomeType propName;"\] ``` ### Wrapper and `connect`ed components and required props