Giter VIP home page Giter VIP logo

manul-admin-ui's Introduction

manul-admin-ui's People

Contributors

remolueoend avatar

Watchers

Beat Seeliger avatar Tomáš Witek avatar Timo avatar James Cloos avatar Claudio Romano avatar Marco Wettstein avatar  avatar  avatar  avatar  avatar psc avatar  avatar  avatar

manul-admin-ui's Issues

find a way to leaverage meteor 1.5. code splitting

you can lazy load components with meteor 1.5 (rc.5 is out):


import("/path/to/mycomponent").then(default => (
  <default />
))

there is even this cool https://github.com/thejameskyle/react-loadable:

import Loadable from 'react-loadable' ;
const LazyLoadedAdminApp = Loadable({
   LoadingComponent: () => <div>Loading</div>,
   loader: () => import("./path/to/mycomponent')
})

<LazyLoadedAdminApp /> // now loads when mounted!

for our admin-ui there is one gotcha, because this approach needs Loadable to be in your "app-space", not sure if it works properly when done inside an npm-package:

// app space code
import Loadable from 'react-loadable' ;

// your admin context:
adminComponents: {
   // that would work properly, but we would need to import every single component this way :-(
    list: Loadable({loader: () => import("/path/to/list.jsx")}) 
}

it would be cool if we could do this somehow in the package!
Maybe we can use Loadable in the package directly, but i don't know how meteor behaves, if you load someting lazily inside an npm package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.