-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
13 feature state management recoil #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
fetch는 swr파일을 따로 만들어서 하지 않나요??
관련해서 기억 잘 안나네요 ㅠㅠ
그리고 url은 env설정 부탁드려요!
@@ -0,0 +1,41 @@ | |||
import axios from "axios"; | |||
|
|||
const request = axios.create({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요걸 session으로 쓰면 될거같아요
); | ||
|
||
|
||
export default request; //axios 인스턴스를 내보낸다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restfull 한 return을 return 하면 좋을거 같아요
instance return
return {
get: (...params) => session.get(...params),
post: (...params) => session.post(...params),
put: (...params) => session.put(...params),
patch: (...params) => session.patch(...params),
delete: (...params) => session.delete(...params),
};
저 return 을 하는 instance(request)를 retrun
<div>{user.username}</div> | ||
</div> | ||
<h2>{count}</h2> | ||
<button onClick={() => increase()}>+</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<button onClick={increase}>+</button>
</div> | ||
<h2>{count}</h2> | ||
<button onClick={() => increase()}>+</button> | ||
<button onClick={() => reset()}>reset</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<button onClick={resetCount}>reset</button>
(+) module federation typescript 추가 이슈 발생(host -> remote expose시 type 오류 발생? 추가 해결 필요) issue