Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/react-async

Package Overview
Dependencies
Maintainers
13
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-async - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

dist/Async.js

@@ -16,2 +16,6 @@ "use strict";

_this.mounted = true;
_this.loadIfIntersecting = function (_a) {
var _b = _a.isIntersecting, isIntersecting = _b === void 0 ? true : _b;
return isIntersecting ? _this.load() : Promise.resolve();
};
_this.load = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {

@@ -67,3 +71,3 @@ var resolved, error_1;

var content = loading ? renderLoading() : render(resolved);
var intersectionObserver = loading && defer === async_1.DeferTiming.InViewport ? (React.createElement(react_intersection_observer_1.IntersectionObserver, { threshold: 0, unsupportedBehavior: react_intersection_observer_1.UnsupportedBehavior.TreatAsIntersecting, onIntersecting: this.load })) : null;
var intersectionObserver = loading && defer === async_1.DeferTiming.InViewport ? (React.createElement(react_intersection_observer_1.IntersectionObserver, { threshold: 0, unsupportedBehavior: react_intersection_observer_1.UnsupportedBehavior.TreatAsIntersecting, onIntersectionChange: this.loadIfIntersecting })) : null;
return (React.createElement(React.Fragment, null,

@@ -70,0 +74,0 @@ effect,

4

package.json
{
"name": "@shopify/react-async",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",

@@ -30,3 +30,3 @@ "description": "Tools for creating powerful, asynchronously-loaded React components.",

"@shopify/react-effect": "^3.0.0",
"@shopify/react-intersection-observer": "^1.0.1",
"@shopify/react-intersection-observer": "^2.0.0",
"@shopify/useful-types": "^1.2.1"

@@ -33,0 +33,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc