For further actions, you may consider blocking this person and/or reporting abuse
Read next
JSON: Uma Visão Abrangente sobre o Formato de Dados Interchange
Sabrina Barros -
Laravel 11 y Vite
Julio Buitrago -
Fixing "phpMyAdmin tried to connect to the MySQL server" Error: A Guide to Configuring MySQL Port 3306
The Builder -
AWS Community Builders partnership with Techne Summit Cairo 2024
Fady Nabil -
Top comments (8)
You may be interested in my article Thunks in Redux: the Basics.
@nestedsoftware : an unevaluated function body is one way to have a thunk in JS, but the concept of a thunk is more general than that. In essence, a thunk is a piece of unevaluated (i.e. lazy) code, which can optionally be evaluated as needed if it turns out the result is going to be used.
Thanks Gabriel, that article looks really good!
I'm not sure where the term came from, but it appears to be nothing more than a function that you return from another function, e.g:
This appears to be used in redux and they call it a 'thunk'. It's a piece of logic you can run at some later time rather than right away.
I found an article introducing the use of 'thunks' in redux.
Very helpful, thanks!
TIL "thunk" is an actual programming word.
Now I sit here and wait for answers. 😁
Same, first time I hear about it :-O
From Wikipedia:
thunk is a function that encapsulates some other function .