min997155003
@min997155003
Reviews Written
5
Average Rating
5.0
Posts
Q&A
๋ก๊ทธ์์ ๊ด๋ จํด์ ์ง๋ฌธ ์์ต๋๋ค.
ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ฐพ์์ต๋๋ค. ๊ทผ๋ฐ ์์ธ์ง ๋ชจ๋ฅด๊ฒ ์ด์ ์๊ณ ์ถ์ต๋๋ค.๊ธฐ์กด ์ฝ๋๋ ์๋์ ๊ฐ์ต๋๋ค.const logout = async (): Promise => { const {data} = await axiosInstance.get('/api/v1/auth/logout'); return data; };const logout = async (): Promise => { const {data} = await axiosInstance.get('/api/v1/auth/logout'); await removeEncryptStorage(storageKeys.REFRESH_TOKEN); return data; };d์ด๋ ๊ฒ logout api์์, ์คํ ๋ฆฌ์ง์ refreshTokenํค๋ฅผ ์ ๊ฑฐํ๋ ํจ์๋ฅผ ์ถ๊ฐํ๋๋ ๋์์ ํฉ๋๋ค.useAuth query ์ฝ๋์ค logout๋ถ๋ถ์์ ๋ถ๋ช ํ, ์คํ ๋ฆฌ์ง๋ฅผ ์ ๊ฑฐํ๋ ์ฝ๋์ ํค๋๋ฅผ ์ ๊ฑฐํ๋ ์ฝ๋๋ฅผ ์์ฑํ๋๋ฐ ๊ฑฐ๊ธฐ์๋ ๋์ํ์ง ์์ง๋ง.logout api์ ์ค๋ณต์ ์ผ๋ก ์คํ ๋ฆฌ์ง๋ฅผ ์ ๊ฑฐํ๋ ์ฝ๋๋ฅผ ์์ฑํ์ ๋ ์ ์ ์์ ์ผ๋ก ๋์ํ๋์ง ์ดํดํ ์ ์์ด ์๊ณ ์ถ์ด ์ง๋ฌธ ๋จ๊น๋๋ค.
- 0
- 2
- 321
Q&A
ํฐํธ ๊ด๋ จ ๊ถ๊ธ์ฌํญ์ ๋๋ค.
ํ์ฌ native wind ์ฌ์ฉ์ค์ ๋๋ค. stylesheet์์๋ ์ ๋๋ก ์ ์ฉ์ด๋ฉ๋๋ค!
- 0
- 2
- 214
Q&A
์คํ ๋ฆฌ๋ถ ์ค์น์ ์๋ฌ ๋ฐ์ ๊ด๋ จ ์ง๋ฌธ์ ๋๋ค.
npm์ ๋์ํ์ง ์๋๋ฐ, yarn์ ์ ์ ๋์๋ฉ๋๋ค. ์๊ทธ๋ฐ์ง๋ ๋ชจ๋ฅด๊ฒ ๋ค์...ใ ใ ใ
- 3
- 1
- 259
Q&A
colors[theme]์ ๋ชป์ฝ๋ ์ด์
๋์ผํ๊ฒ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค!!
- 0
- 2
- 285
Q&A
์นด์นด์ค ์ฃผ์ ๊ฒ์ ๊ธฐ๋ฅ 401 ์๋ฌ
https://github.com/dydals3440/MatZip๊นํ๋ธ ์ฃผ์ ๊ฐ์ด ์ ๋ฌ๋๋ฆฝ๋๋ค!
- 1
- 5
- 674
Q&A
์นด์นด์ค ์ฃผ์ ๊ฒ์ ๊ธฐ๋ฅ 401 ์๋ฌ
import SearchInput from '@/components/common/SearchInput'; import useSearchLocation from '@/hooks/useSearchLocation'; import useUserLocation from '@/hooks/useUserLocation'; import React, {useState} from 'react'; import {Keyboard, StyleSheet, View} from 'react-native'; const SearchLocationScreen = () => { const [keyword, setKeyword] = useState(''); const {userLocation} = useUserLocation(); const {regionInfo} = useSearchLocation(keyword, userLocation); const handleChangeKeyword = (text: string) => { setKeyword(text); }; return ( Keyboard.dismiss()} /> ); }; const styles = StyleSheet.create({ container: { flex: 1, padding: 20, }, }); export default SearchLocationScreen; import axios from 'axios'; import {useEffect, useState} from 'react'; import Config from 'react-native-config'; import {LatLng} from 'react-native-maps'; type Meta = { total_count: number; pageable_count: number; is_end: boolean; same_name: { region: string[]; keyword: string; selected_region: string; }; }; export type RegionInfo = { address_name: string; category_group_code: string; category_group_name: string; category_name: string; distance: string; id: string; phone: string; place_name: string; place_url: string; road_address_name: string; x: string; y: string; }; type RegionResponse = { meta: Meta; documents: RegionInfo[]; }; function useSearchLocation(keyword: string, location: LatLng) { const [regionInfo, setRegionInfo] = useState([]); const [pageParam, setPageParam] = useState(1); console.log(keyword, location); useEffect(() => { (async () => { try { const {data} = await axios.get( `https://dapi.kakao.com/v2/local/search/address.json?query=${keyword}&y=${location.latitude}&x=${location.longitude}&page=${pageParam}`, { headers: { Authorization: `KakaoAK ${Config.KAKAO_REST_API_KEY}`, }, }, ); console.log('data', data); } catch (error) { console.log(error); } })(); }, [keyword, location]); return {regionInfo}; } export default useSearchLocation; GOOGLE_API_KEY=ํค๊ฐ๋ค KAKAO_REST_API_KEY=ํค๊ฐ๋ค
- 1
- 5
- 674
Q&A
ios ๋น๋ ์๋ฌ! ์๋๋ ์ ์ ๋์
์์ ๋์ผํ๊ฒ ํ๋๋ฐ x-code ์์์ ์๋์ ๊ฐ์ ์๋ฌ๋ฅผ ๋ณด์ฌ์ค๋๋ค... ์ด์ ์๋ ์ ๋๋๋ฐ, ๋น์ทํ๊ฒ ๋ณต์ตํ๋ฉด์ ๋ค๋ฅธ ๊ฒ์ ๋ง๋ค์ด๋ณผ๋ ค๊ณ ํ๋๋ฐ, ์ด๋ฒ์๋ ์ ์๋๋ค์...(์ฌ์ง)
- 1
- 2
- 913
Q&A
marker.d.ts ๊ด๋ จ
์ ๋ ์์ ๋์ผํ ์๋ฌ๊ฐ ๋ฐ์ํ๋๋ฐ ์ด๋ป๊ฒ ํด๊ฒฐํ์ จ์๊น์?
- 1
- 2
- 290
Q&A
๋ก๊ทธ์ธ ํต์ ์ง๋ฌธ
๊ฐ์ฌํฉ๋๋ค. ๋ค์ ๊ฐ์ข์์ ํ์ธํ์ต๋๋ค. ์ฌ๋ฌ๋ชจ๋ก ๋ง์ด ๋ฐฐ์ฐ๋ ๊ฐ์ข์ธ ๊ฒ ๊ฐ์ต๋๋ค. ์น์ ํ๊ณ ๋น ๋ฅธ ๋ต๋ณ๊ณผ ์ข์ ๊ฐ์ ๊ฐ์ฌํฉ๋๋ค!!
- 1
- 2
- 288
Q&A
relation option "nullable : false" ๋ก ์ค์ ํ๋๋ฐ, ํ ์ด๋ธ์ insert๊ฐ ๋๊ณ ์์ต๋๋ค.
์ ๋ ๋์ผํ๊ฒ nullable / onDelete ๋ถ๋ถ์์ ์๋ฌ๊ฐ ๋ฐ์ํ์ง ์๋๋ฐ, ํน์ ํด๊ฒฐํ์ จ๋์ง ๊ถ๊ธํฉ๋๋ค!!
- 0
- 3
- 375




