Convert Option to Effect and Best Practices
See the following example of a service. It has a findProject method returning an optional entity, meaning it can be undefined or null.
Then I have the following program for receiving the entity (used inside a Remix loader).
How do I unwrap the Option type here? And what do you think about the composition and patterns. Any recommendations on how to improve it?
Thanks in advance!
Then I have the following program for receiving the entity (used inside a Remix loader).
How do I unwrap the Option type here? And what do you think about the composition and patterns. Any recommendations on how to improve it?
Thanks in advance!
