Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return Trackr.autorun(() => {
_meteorDataDep.depend();
trackerCleanup = reactiveFn(props, onData);
});
});
return () => {
if (typeof trackerCleanup === 'function') {
trackerCleanup();
}
Data.offChange(_meteorDataChangedCallback);
return handler.stop();
};
};
return compose(onPropsChange, L, E, options);
}
import { Meteor } from 'meteor/meteor';
import { compose } from 'react-komposer';
import { getTrackerLoader, composerOptions } from '/imports/react-ui/utils';
import MainLayout from '../components/MainLayout';
function composer(props, onData) {
onData(null, {
loggedIn: !!Meteor.user(),
loggingIn: Meteor.loggingIn(),
});
}
export default compose(getTrackerLoader(composer), composerOptions({}))(MainLayout);
import { compose } from 'react-komposer';
import { getTrackerLoader, composerOptions } from '/imports/react-ui/utils';
import { Form } from '../components';
function composer({ form }, onData) {
onData(null, {
form,
});
}
export default compose(getTrackerLoader(composer), composerOptions({ spinner: true }))(Form);
import { Meteor } from 'meteor/meteor';
import { compose } from 'react-komposer';
import { getTrackerLoader, composerOptions } from '/imports/react-ui/utils';
import QuickNavigation from '../components/QuickNavigation';
function composer(props, onData) {
const handler = Meteor.subscribe('notifications.unreadCount');
if (handler.ready()) {
const unreadCount = 0;
onData(null, { unreadCount });
}
}
export default compose(getTrackerLoader(composer), composerOptions({}))(QuickNavigation);
import { compose } from 'react-komposer';
import { getTrackerLoader, composerOptions } from '/imports/react-ui/utils';
import { BrandForm } from '../components';
function composer({ brand }, onData) {
onData(null, {
brand,
});
}
export default compose(getTrackerLoader(composer), composerOptions({ spinner: true }))(BrandForm);
}
onData(null, {
loadingStoredUser: false,
hasStoredUser: storedUser,
});
if(storedUser){
Actions.dashboard({type: 'replace'});
} else {
Actions.intro({type: 'replace'});
}
});
}
export default compose(composer, Loader, Loader);