Closed frankcollins3 closed 1 year ago
this isn't working
[1:42pm]
this is working but now the expression is coming back as uncallable [1:46pm]
solution was to change the name. This was working with the alias but I'd rather separate the concerns.
[2:00pm]
check it out:
proposed approaches:
easy to solve. One can just change the name of the utility function or change the name of the state.
i'd like to see if one could solve this by: giving the utility function import an alias so that it may be invoked under a different name,
this would of course mean that the utility function would technically no longer share the name of the global state variable.
global state:
allpokemon (global state which will hold all of the pokemon objects retrieved from the pokeapi) allpokemonset (global state function that stores all pokemon as state. I'd like to have less utility functions if possible. )utility function:
allpokemon from allpokemon.ts