Inject variables into ft.app() #1909
-
| Any idea how to inject variables / objects into the target function? I don't prefer that that function becomes my main entrypoint for the whole application.. I want to use async functions btw. | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            FeodorFitsner
          
      
      
        Oct 3, 2023 
      
    
    Replies: 1 comment 7 replies
-
| What are you trying to solve? You don't need injecting anything -  | 
Beta Was this translation helpful? Give feedback.
                  
                    7 replies
                  
                
            
      Answer selected by
        d3jong
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
What are you trying to solve? You don't need injecting anything -
mainfunction has access to the outside scope.In our apps we use to have
state(orstore) object which is a singleton in a module and which reference could be shared between multiple sessions.