--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____exports = {}
local ____context = require("hooks.context")
local getOrInitHook = ____context.getOrInitHook
local ____helpers = require("hooks.helpers")
local inputsChanged = ____helpers.inputsChanged
require("hooks.reconcilerHooks")
____exports.useMemo = function(fn, inputs)
    local state = getOrInitHook(
        "memo",
        function() return {
            type = "memo",
            current = fn(),
            inputs = inputs
        } end
    )
    if inputsChanged(state.inputs, inputs) then
        state.current = fn()
    end
    return state.current
end
return ____exports
