This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns fq.dce-test | |
(:require | |
[fulcro.client.primitives :as fp :refer (defsc)])) | |
(defsc Test [this props] | |
{} | |
(js/console.log "THIS SHOULD BE REMOVED!")) | |
(def ui-test (fp/factory Test {})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $fq$dce_test$$ = {}; | |
if ("undefined" === typeof $fq$dce_test$$ || "undefined" === typeof $fq$dce_test$$.$Test$) { | |
$fq$dce_test$$.$Test$ = function() { | |
React.Component.apply(this, arguments); | |
this.state = null != this.$initLocalState$ ? this.$initLocalState$() : {}; | |
return this; | |
}; | |
var $obj$jscomp$inline_929$$ = React.Component.prototype, $res$jscomp$inline_930$$ = {}, $key$jscomp$inline_931$$; | |
for ($key$jscomp$inline_931$$ in $obj$jscomp$inline_929$$) { | |
$res$jscomp$inline_930$$[$key$jscomp$inline_931$$] = $obj$jscomp$inline_929$$[$key$jscomp$inline_931$$]; | |
} | |
$fq$dce_test$$.$Test$.prototype = $res$jscomp$inline_930$$; | |
} | |
var $x21311_21322$$ = $fq$dce_test$$.$Test$.prototype; | |
$x21311_21322$$.componentDidMount = function() { | |
this.fulcro$mounted = !0; | |
var $indexer__19358__auto__$$ = $cljs$core$get_in$cljs$0core$0IFn$0_invoke$0arity$02$$($fulcro$client$primitives$get_reconciler$$(this), new $cljs$core$PersistentVector$$(null, 2, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$cljs$cst$keyword$config$$, $cljs$cst$keyword$indexer$$], null)); | |
return null == $indexer__19358__auto__$$ ? null : $fulcro$client$impl$protocols$index_component_BANG_$$($indexer__19358__auto__$$, this); | |
}; | |
$x21311_21322$$.shouldComponentUpdate = function($next_props__19345__auto___props_changed_QMARK___19349__auto__$$, $next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$) { | |
var $children_changed_QMARK___19351__auto___next_children__19347__auto__$$ = $next_props__19345__auto___props_changed_QMARK___19349__auto__$$.children; | |
$next_props__19345__auto___props_changed_QMARK___19349__auto__$$ = !$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($goog$object$get$$(this.props, "fulcro$value"), $goog$object$get$$($next_props__19345__auto___props_changed_QMARK___19349__auto__$$, "fulcro$value")); | |
$next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$ = $goog$object$get$$($next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$, "fulcro$state"); | |
var $and__3938__auto__$jscomp$inline_1286$$ = this.state; | |
$next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$ = $cljs$core$truth_$$($and__3938__auto__$jscomp$inline_1286$$) ? !$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($goog$object$get$$(this.state, "fulcro$state"), $next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$) : $and__3938__auto__$jscomp$inline_1286$$; | |
$children_changed_QMARK___19351__auto___next_children__19347__auto__$$ = !$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.props.children, $children_changed_QMARK___19351__auto___next_children__19347__auto__$$); | |
return $next_props__19345__auto___props_changed_QMARK___19349__auto__$$ ? $next_props__19345__auto___props_changed_QMARK___19349__auto__$$ : $cljs$core$truth_$$($next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$) ? $next_state__19346__auto___next_state__19346__auto____$1_state_changed_QMARK___19350__auto__$$ : $children_changed_QMARK___19351__auto___next_children__19347__auto__$$; | |
}; | |
$x21311_21322$$.componentWillUnmount = function() { | |
var $cfg__19360__auto___indexer__19358__auto__$jscomp$1$$ = $cljs$cst$keyword$config$$.$cljs$core$IFn$_invoke$arity$1$($fulcro$client$primitives$get_reconciler$$(this)), $st__19361__auto__$$ = $cljs$cst$keyword$state$$.$cljs$core$IFn$_invoke$arity$1$($cfg__19360__auto___indexer__19358__auto__$jscomp$1$$); | |
$cfg__19360__auto___indexer__19358__auto__$jscomp$1$$ = $cljs$cst$keyword$indexer$$.$cljs$core$IFn$_invoke$arity$1$($cfg__19360__auto___indexer__19358__auto__$jscomp$1$$); | |
this.fulcro$mounted = !1; | |
var $JSCompiler_inline_result$jscomp$975_and__3938__auto__$jscomp$inline_1268$$ = ($JSCompiler_inline_result$jscomp$975_and__3938__auto__$jscomp$inline_1268$$ = null != $st__19361__auto__$$) ? $cljs$core$get_in$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$core$_deref$$($st__19361__auto__$$), new $cljs$core$PersistentVector$$(null, 2, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$cljs$cst$keyword$fulcro_DOT_client_DOT_primitives_SLASH_queries$$, this], null)) : $JSCompiler_inline_result$jscomp$975_and__3938__auto__$jscomp$inline_1268$$; | |
$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$975_and__3938__auto__$jscomp$inline_1268$$) && $cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($st__19361__auto__$$, $cljs$core$update_in$$, new $cljs$core$PersistentVector$$(null, 1, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$cljs$cst$keyword$fulcro_DOT_client_DOT_primitives_SLASH_queries$$], null), $cljs$core$dissoc$$, $cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this])); | |
return null == $cfg__19360__auto___indexer__19358__auto__$jscomp$1$$ ? null : $fulcro$client$impl$protocols$drop_component_BANG_$$($cfg__19360__auto___indexer__19358__auto__$jscomp$1$$, this); | |
}; | |
$x21311_21322$$.componentDidUpdate = function($x21311_21322$jscomp$4$$) { | |
return function($prev_props__19352__auto___prev_props__19352__auto____$1$$) { | |
$prev_props__19352__auto___prev_props__19352__auto____$1$$ = $goog$object$get$$($prev_props__19352__auto___prev_props__19352__auto____$1$$, "fulcro$value"); | |
if (null != this && $cljs$core$PROTOCOL_SENTINEL$$ === this.$fulcro$client$primitives$Ident$$) { | |
var $ident__19354__auto__$$ = $fulcro$client$primitives$ident$$(this, $prev_props__19352__auto___prev_props__19352__auto____$1$$), $next_ident__19355__auto__$$ = $fulcro$client$primitives$ident$$(this, $goog$object$get$$(this.props, "fulcro$value")); | |
if (!$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($ident__19354__auto__$$, $next_ident__19355__auto__$$)) { | |
var $idxr__19356__auto__$$ = $cljs$core$get_in$cljs$0core$0IFn$0_invoke$0arity$02$$($fulcro$client$primitives$get_reconciler$$(this), new $cljs$core$PersistentVector$$(null, 2, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$cljs$cst$keyword$config$$, $cljs$cst$keyword$indexer$$], null)); | |
return null == $idxr__19356__auto__$$ ? null : $cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$keyword$indexes$$.$cljs$core$IFn$_invoke$arity$1$($idxr__19356__auto__$$), function($x21311_21322$jscomp$4$$, $prev_props__19352__auto___prev_props__19352__auto____$1$$, $ident__19354__auto__$$, $next_ident__19355__auto__$$, $idxr__19356__auto__$$) { | |
return function($x21311_21322$jscomp$4$$) { | |
return $cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($x21311_21322$jscomp$4$$, new $cljs$core$PersistentVector$$(null, 2, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$cljs$cst$keyword$ref_DASH__GT_components$$, $prev_props__19352__auto___prev_props__19352__auto____$1$$], null), $cljs$core$disj$$, $idxr__19356__auto__$$), new $cljs$core$PersistentVector$$(null, 2, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$cljs$cst$keyword$ref_DASH__GT_components$$, | |
$ident__19354__auto__$$], null), $cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$(), $idxr__19356__auto__$$); | |
}; | |
}($idxr__19356__auto__$$, $ident__19354__auto__$$, $next_ident__19355__auto__$$, $prev_props__19352__auto___prev_props__19352__auto____$1$$, this, $x21311_21322$jscomp$4$$)); | |
} | |
} | |
return null; | |
}; | |
}($x21311_21322$$); | |
$x21311_21322$$.render = function() { | |
var $_STAR_reconciler_STAR_21315$$ = $fulcro$client$primitives$_STAR_reconciler_STAR_$$, $_STAR_depth_STAR_21316$$ = $fulcro$client$primitives$_STAR_depth_STAR_$$, $_STAR_shared_STAR_21317$$ = $fulcro$client$primitives$_STAR_shared_STAR_$$, $_STAR_instrument_STAR_21318$$ = $fulcro$client$primitives$_STAR_instrument_STAR_$$, $_STAR_parent_STAR_21319$$ = $fulcro$client$primitives$_STAR_parent_STAR_$$; | |
$fulcro$client$primitives$_STAR_reconciler_STAR_$$ = $fulcro$client$primitives$get_reconciler$$(this); | |
$fulcro$client$primitives$_STAR_depth_STAR_$$ = (null != this && !0 === this.fulcro$isComponent ? $goog$object$get$$(this.props, "fulcro$depth") : null) + 1; | |
var $k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$ = $cljs$core$PersistentVector$EMPTY$$, $shared$jscomp$inline_1290$$ = $goog$object$get$$(this.props, "fulcro$shared"); | |
$k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$ = $cljs$core$sequential_QMARK_$$($k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$) ? $k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$ : new $cljs$core$PersistentVector$$(null, 1, 5, $cljs$core$PersistentVector$EMPTY_NODE$$, [$k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$], null); | |
$fulcro$client$primitives$_STAR_shared_STAR_$$ = $cljs$core$empty_QMARK_$$($k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$) ? $shared$jscomp$inline_1290$$ : $cljs$core$get_in$cljs$0core$0IFn$0_invoke$0arity$02$$($shared$jscomp$inline_1290$$, $k_or_ks$jscomp$inline_1289_ks$jscomp$inline_1291$$); | |
$fulcro$client$primitives$_STAR_instrument_STAR_$$ = $goog$object$get$$(this.props, "fulcro$instrument"); | |
$fulcro$client$primitives$_STAR_parent_STAR_$$ = this; | |
try { | |
return console.log("THIS SHOULD BE REMOVED!"); | |
} finally { | |
$fulcro$client$primitives$_STAR_parent_STAR_$$ = $_STAR_parent_STAR_21319$$, $fulcro$client$primitives$_STAR_instrument_STAR_$$ = $_STAR_instrument_STAR_21318$$, $fulcro$client$primitives$_STAR_shared_STAR_$$ = $_STAR_shared_STAR_21317$$, $fulcro$client$primitives$_STAR_depth_STAR_$$ = $_STAR_depth_STAR_21316$$, $fulcro$client$primitives$_STAR_reconciler_STAR_$$ = $_STAR_reconciler_STAR_21315$$; | |
} | |
}; | |
$fq$dce_test$$.$Test$.prototype.constructor = $fq$dce_test$$.$Test$; | |
$fq$dce_test$$.$Test$.prototype.constructor.displayName = "fq.dce-test/Test"; | |
$fq$dce_test$$.$Test$.prototype.fulcro$isComponent = !0; | |
$fq$dce_test$$.$Test$.$cljs$lang$type$ = !0; | |
$fq$dce_test$$.$Test$.$cljs$lang$ctorStr$ = "fq.dce-test/Test"; | |
$fq$dce_test$$.$Test$.$cljs$lang$ctorPrWriter$ = function($this__19502__auto__$$, $writer__19503__auto__$$) { | |
return $cljs$core$_write$$($writer__19503__auto__$$, "fq.dce-test/Test"); | |
}; | |
$fulcro$client$primitives$factory$cljs$0core$0IFn$0_invoke$0arity$02$$($fq$dce_test$$.$Test$, $cljs$core$PersistentArrayMap$EMPTY$$); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment