• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

saga 질문 입니다.

21.03.16 23:41 작성 조회수 173

0

안녕하세요. 강의 잘 듣고있습니다.

현재 saga를 사용하여 여러가지 테스트를 해보고 있는데 오류는 아닌거 같으나 다음 아래와 같은 내용이 계속 출력됩니다.

원인을 알 수 있을 까요??

event - build page: /

wait  - compiling...

event - compiled successfully

{

  AppTree: [Function: AppTree],

  Component: [Function: index],

  router: ServerRouter {

    route: '/',

    pathname: '/',

    query: {},

    asPath: '/',

    basePath: '',

    events: undefined,

    isFallback: false,

    locale: undefined,

    locales: undefined,

    defaultLocale: undefined

  },

  ctx: {

    err: undefined,

    req: IncomingMessage {

      _readableState: [ReadableState],

      _events: [Object: null prototype],

      _eventsCount: 1,

      _maxListeners: undefined,

      socket: [Socket],

      httpVersionMajor: 1,

      httpVersionMinor: 1,

      httpVersion: '1.1',

      complete: true,

      headers: [Object],

      rawHeaders: [Array],

      trailers: {},

      rawTrailers: [],

      aborted: false,

      upgrade: false,

      url: '/',

      method: 'GET',

      statusCode: null,

      statusMessage: null,

      client: [Socket],

      _consuming: false,

      _dumped: false,

      cookies: [Getter/Setter],

      [Symbol(kCapture)]: false,

      [Symbol(RequestTimeout)]: undefined

    },

    res: ServerResponse {

      _events: [Object: null prototype],

      _eventsCount: 1,

      _maxListeners: undefined,

      outputData: [],

      outputSize: 0,

      writable: true,

      destroyed: false,

      _last: false,

      chunkedEncoding: false,

      shouldKeepAlive: true,

      _defaultKeepAlive: true,

      useChunkedEncodingByDefault: true,

      sendDate: true,

      _removedConnection: false,

      _removedContLen: false,

      _removedTE: false,

      _contentLength: null,

      _hasBody: true,

      _trailer: '',

      finished: false,

      _headerSent: false,

      socket: [Socket],

      _header: null,

      _keepAliveTimeout: 5000,

      _onPendingData: [Function: bound updateOutgoingData],

      _sent100: false,

      _expect_continue: false,

      statusCode: 200,

      flush: [Function: flush],

      write: [Function: write],

      end: [Function: end],

      on: [Function: on],

      writeHead: [Function: writeHead],

      [Symbol(kCapture)]: false,

      [Symbol(kNeedDrain)]: false,

      [Symbol(corked)]: 0,

      [Symbol(kOutHeaders)]: null

    },

    pathname: '/',

    query: {},

    asPath: '/',

    AppTree: [Function: AppTree]

  }

}

1. getProps created store with state {

  index: {},

  user: { isLoging: false, isLogin: false, userEmail: null }

}

3. getProps after dispatches has store state {

  index: {},

  user: { isLoging: false, isLogin: false, userEmail: null }

}

4. WrappedApp created new store with withRedux(withReduxSaga(apptest)) {

  initialState: {

    index: {},

    user: { isLoging: false, isLogin: false, userEmail: null }

  },

  initialStateFromGSPorGSSR: undefined

}

{}

답변 1

답변을 작성해보세요.

0

김성룡님의 프로필

김성룡

질문자

2021.03.16

강사님 원인 찾았습니다. configureStore에서 랩퍼에 디버그 값 넣어놨었내요!