Bug? when calling once() multiple times directly after each other #74
Unanswered
joshbenham
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey not sure if this is a bug or just an oddity...
Basically what I originally had was
And the weird thing is that $model and $colour_code were returning the results of $year. Not sure if it was to do with the Stack Trace and maybe the code was too close together.
So I changed it to instead using functions like
And in those functions just extracted the once code out
And it worked perfectly.
No issues on my side not that its working was more just curious if it was a bug or a pitfall of using the stack trace.
Beta Was this translation helpful? Give feedback.
All reactions