Understanding the ApiClient & Session structure #159
-
I've been looking into this project to try and understand some of the structures used and why they're used and one that I can't quite understand is the First quick side question...As it's a static function this could be called multiple times in the project and each time it would give you a new Second...The way this function works is really what I'm trying to get my head around. 😅 In the function you first create a Then you create a Then you finally create an NVM... I've finally understood it 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @oliverfoggin!
The app entry point is what provides an environment to this store, and this environment value does not change over time. We even have a helper Lines 118 to 122 in 699db8a Even if this were a computed Sounds like you figured out the second question, though? 😄 |
Beta Was this translation helpful? Give feedback.
Hey @oliverfoggin!
The app entry point is what provides an environment to this store, and this environment value does not change over time. We even have a helper
static let
in the file responsible for creating the store here:isowords/App/iOS/App.swift
Lines 118 to 122 in 699db8a