Skip to content

Changed order of useEffect arguments. #6

Closed
@garthenweb

Description

@garthenweb

Should be somewhere in useRect using useLayoutSnapshot.

Warning: The final argument passed to useEffect changed size between renders. The order and size of this array must remain constant.

Previous: []
Incoming: [function (handler, options) {
      _this.listeners.push(_assign({
        handler: handler,
        iterations: 0,
        averageExecutionCost: 0,
        skippedIterations: 0
      }, options));

      _this.updateHasListenersState();
    }, function (h) {
      _this.listeners = _this.listeners.filter(function (_a) {
        var handler = _a.handler;
        return handler !== h;
      });

      _this.updateHasListenersState();
    }]
    in AppContainer (created by HotExportedinject-Layout)
    in HotExportedinject-Layout (created by RouterContext)
    in RouterContext (created by Router)
    in Router
    in Provider
    in I18nextProvider
    in Unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions