Socket
Socket
Sign inDemoInstall

dva

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dva - npm Package Compare versions

Comparing version 2.1.0-beta.3 to 2.1.0

12

lib/dynamic.js

@@ -56,2 +56,6 @@ 'use strict';

var defaultLoadingComponent = function defaultLoadingComponent() {
return null;
};
function asyncComponent(config) {

@@ -75,5 +79,3 @@ var resolve = config.resolve;

_this.LoadingComponent = config.LoadingComponent || function () {
return null;
};
_this.LoadingComponent = config.LoadingComponent || defaultLoadingComponent;
_this.state = {

@@ -145,2 +147,6 @@ AsyncComponent: null

}
dynamic.setDefaultLoadingComponent = function (LoadingComponent) {
defaultLoadingComponent = LoadingComponent;
};
module.exports = exports['default'];
{
"name": "dva",
"version": "2.1.0-beta.3",
"version": "2.1.0",
"description": "React and redux based, lightweight and elm-style framework.",

@@ -5,0 +5,0 @@ "repository": {

@@ -12,2 +12,4 @@ import React, { Component } from 'react';

let defaultLoadingComponent = () => null;
function asyncComponent(config) {

@@ -20,3 +22,3 @@ const { resolve } = config;

this.LoadingComponent =
config.LoadingComponent || (() => null);
config.LoadingComponent || defaultLoadingComponent;
this.state = {

@@ -76,1 +78,5 @@ AsyncComponent: null,

}
dynamic.setDefaultLoadingComponent = (LoadingComponent) => {
defaultLoadingComponent = LoadingComponent;
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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