decord/source/modules/user_profile/hooks/useNote.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 12001
// Function ID: 92767
2026-07-20 16:05:17 +00:00
// Name: _fetchNote
2026-07-24 07:16:23 +00:00
// Dependencies: [5, 31, 12002, 653, 566, 686, 507, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 12001 (_fetchNote)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher";
import result from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Endpoints } from "ME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _fetchNote() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/user_profile/hooks/useNote.tsx");
2026-07-20 16:05:17 +00:00
export default function useNote(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
const items = [_isNativeReflectConstruct];
let stateFromStores = _require(566).useStateFromStores(items, () => outer1_5.getNote(closure_0));
2026-07-20 16:05:17 +00:00
const items1 = [stateFromStores, arg0];
const effect = React.useEffect(() => {
if (null == stateFromStores) {
2026-07-23 10:11:24 +00:00
(function fetchNote(closure_0) {
return outer2_7(...arguments);
})(closure_0);
2026-07-20 16:05:17 +00:00
}
}, items1);
if (null == stateFromStores) {
2026-07-23 10:11:24 +00:00
stateFromStores = { loading: true, note: null };
2026-07-20 16:05:17 +00:00
}
return stateFromStores;
};