useMutationKey<R> function
Implementation
MutationKey<R> useMutationKey<R>({String? of, MutationKey<R>? key}) {
return useMemoized(() {
if (of != null && key != null) {
throw const MutationException("of and key 같이 쓸수 없음.");
}
if (of == null) {
return key ?? MutationKey<R>();
}
return MutationKey.of<R>(of);
}, [of, key]);
}