This message was deleted.
# general
s
This message was deleted.
b
this seems like a bug, can you file an issue in pulumi/pulumi for it, with a repro? also what state backend are you using?
l
Using the Pulumi backend. Sure! I’ll open a ticket.
Made a super small example and recreated it.
b
hey, just reading this: is there a reason you're reading the stack reference twice?
l
What’s the recommended pattern? Read it in
index.ts
and pass it around through your functions?
I was just planning on pulling it in when I needed it
b
providers are stored in the state like resources, so you need to treat them as such, so reading it once and passing it around is a better pattern, yeah
l
Okay so this is not a bug - you are just supposed to read it once and then pass it around.
Got it
b
yeah sorry for the confusion!