Elmārs Āboliņš 3bd423243e help
2020-06-28 18:43:28 +03:00
..
2020-06-21 03:42:26 +03:00
2020-06-21 03:42:26 +03:00
2020-06-21 03:42:26 +03:00
2020-06-21 03:42:26 +03:00
2020-06-28 18:43:28 +03:00

Hooks are additional functions to utilize the element lifecycle more granularly e.g.

local onDestroyHook = require("helium/hooks/onDestroy")

return function (param)

    onDestroyHook(function()
        doSomething()
    end)

    return function()
        love.graphics.print("Help")
    end
end