makeStateKey
함수
안정화
Create a StateKey<T> that can be used to store value of type T with TransferState.
@paramkey
string@returns
StateKey<T>설명
Create a StateKey<T> that can be used to store value of type T with TransferState.
Example:
const COUNTER_KEY = makeStateKey<number>('counter');
let value = 10;
transferState.set(COUNTER_KEY, value);
상세 내용으로 이동