Example:

```js
        function Example(props) {
          useEffect(() => {
            let topHeight = 0;
            topHeight = props.upperViewHeight;
          }, [props.upperViewHeight]);
        }
```

This is **not** supposed to violate because `props.upperViewHeight` is in the deps.
references.forEach(reference => {
          if (reference.writeExpr) {
            reportStaleAssignment(reference.writeExpr, key);
          }
        });
      });
      if (staleAssignments.size > 0) {
        
        return;
      }
      if (!declaredDependenciesNode) {
        
        
        let setStateInsideEffectWithoutDeps = null;
        dependencies.forEach(({isStable, references}, key) => {
          if (setStateInsideEffectWithoutDeps) {
            return;
          }
          references.forEach(reference => {
            if (setStateInsideEffectWithoutDeps) {
              return;
            }
            const id = reference.identifier;
            const isSetState = setStateCallSites.has(id);
            if (!isSetState) {
              return;
            }
            let fnScope = reference.from;
            while (fnScope.type !== 'function') {
              fnScope = fnScope.upper;