This message was deleted.
# 질문
s
This message was deleted.
u
app boot시점에 아래와 같이 relay store에 저장하고,
Copy code
commitLocalUpdate(environment, (store) => {
  const root = store.getRoot();
  const token = localStorage.getItem('token');
  root.setValue(!!token, 'isAuth');
});
environment.getStore().getSource().get('client:root')?.isAuth
으로 꺼내오니까 딱히 client side schema를 쓰지 않아도 되긴 하네용....
위 방법으로 하면
isAuth
타입이
unkown
이라서 타입 어설션을 써야하는 불상사가 생기네용.... 혹시 이런경우 해결하신 분 꼭 답변 부탁드립니당 😞