That's a good rule of thumb to remember, no resolver should ever return nil
. Thank you guys. It ended up being a silly fault of my own but your replies were helpful nonetheless.
@dionysius.almeida Chrome (official) or Chromium? The latter is not supported, and is known to have issues. You can right-click on the extension itself (i.e. right click on the word “Revision”) and choose “Inspect”, which will open up a separate devtools window against the plugin itself…look for console error messages in there.
(please don’t pin your own private issues on this channel)
If you get to a small reproducible issue that I can pull into a workspace card it would be helpful. I don’t have the time to do much else. I’m not aware of any Fulcro issues, but I’m sure getDerivedStateFromProps
is not heavily used.
yep…parsing limitation. Might fix eventually, but for now just s/def
that and use the keyword instead
@tony.kay Sorry about the pin ..didn't know that was global 😳. I'm using chrome official on windows. I'm not sure where to right click. I don't see anything like "Revision".
Try right clicking directly on the word "Revision" where you see "Revision nil". A pop-up should appear.
Also, remember to edit the Chrome developer tool settings. You need to check both:
• Under "Console": "Enable Custom Formatters" • Under "Network": "Disable Cache (while devtools is open)"
Hi Henry, Thank you for your help. I do have custom formatters enabled
and also cache
is disabled
. This happens both on my windows
desktop and linux
laptop. I also don't see any popup when I right click on the "`Revision nil`" under Fulcro inspect.
I only get the chrome menu.
@tony.kay I do see some errors in Fulcro Inspect
when I click on Errors
button under manage extensions.
This is the error message I see:
function Nk(a,b){return function(){function c(l,p,n){return a.B?a.B(b,l,p,n):a.call(null,b,l,p,n)}function d(l,p){return a.f?a.f(b,l,p):a.call(null,b,l,p)}function e(l){return a.b?a.b(b,l):a.call(null,b,l)}function g(){return a.a?a.a(b):a.call(null,b)}var h=null,k=function(){function l(n,m,r,v){var q=null;if(3<arguments.length){q=0;for(var t=Array(arguments.length-3);q<t.length;)t[q]=arguments[q+3],++q;q=new sc(t,0,null)}return p.call(this,n,m,r,q)}function p(n,m,r,v){return ce(a,b,n,m,r,Tc([v]))}
l.ga=3;l.fa=function(n){var m=J(n);n=P(n);var r=J(n);n=P(n);var v=J(n);n=tc(n);return p(m,r,v,n)};l.C=p;return l}();h=function(l,p,n,m){switch(arguments.length){case 0:return g.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,p);case 3:return c.call(this,l,p,n);default:var r=null;if(3<arguments.length){r=0;for(var v=Array(arguments.length-3);r<v.length;)v[r]=arguments[r+3],++r;r=new sc(v,0,null)}return k.C(l,p,n,r)}throw Error("Invalid arity: "+arguments.length);};h.ga=3;h.fa=k.fa;
h.w=g;h.a=e;h.b=d;h.f=c;h.C=k.C;return h}()}function Ok(a,b){return new Kd(null,function(){var c=I(b);if(c){if(nd(c)){for(var d=Yb(c),e=U(d),g=new Md(Array(e)),h=0;;)if(h<e){var k=function(){var l=kb.b(d,h);return a.a?a.a(l):a.call(null,l)}();null!=k&&g.add(k);h+=1}else break;return Pd(<http://g.ua|g.ua>(),Ok(a,Zb(c)))}e=function(){var l=J(c);return a.a?a.a(l):a.call(null,l)}();return null==e?Ok(a,tc(c)):Sc(e,Ok(a,tc(c)))}return null},null,null)}
var Pk=new Gd(null,"tab-id","tab-id",-468188778),Qk=new Gd(null,"message","message",-406056002);var Rk={},Sk={};if("undefined"===typeof uh||"undefined"===typeof vh||"undefined"===typeof wh||"undefined"===typeof Rk||"undefined"===typeof Sk||"undefined"===typeof Tk)var Tk=new we(ge);if("undefined"===typeof uh||"undefined"===typeof vh||"undefined"===typeof wh||"undefined"===typeof Rk||"undefined"===typeof Sk||"undefined"===typeof Uk)var Uk=new we(ge);
function Vk(a,b){if(vc.b("init",Vg(b,"name"))){var c=Vg(b,"tab-id");return dh.B(Uk,cd,c,a)}return y(Ug(b,"fulcro-inspect-devtool-message"))?(c=Vg(b,"tab-id"),qc.b(Ab(Tk),c).postMessage(b)):null}
function Wk(a,b,c){if(y(Ug(b,"fulcro-inspect-remote-message"))){var d=Ug(c,"sender","tab","id");vi(a,new Ta(null,2,[Pk,d,Qk,b],null));a=Ug(b,"__fulcro-insect-msg-id");return y(a)?c.postMessage({ack:"ok","__fulcro-insect-msg-id":a}):null}return y(Ug(b,"fulcro-inspect-fulcro-detected"))?(c=d=Ug(c,"sender","tab","id"),chrome.browserAction.setIcon({tabId:c,path:{16:"icon-16.png",32:"icon-32.png",48:"icon-48.png",128:"icon-128.png"}}),chrome.browserAction.setPopup({tabId:c,popup:"popups/enabled.html"})):
null}
chrome.runtime.onConnect.addListener(function(a){var b=Vg(a,"name");switch(b){case "fulcro-inspect-remote":var c=ti(new Lh),d=Nk(Wk,c),e=Ug(a,"sender","tab","id");dh.B(Tk,cd,e,a);Vg(a,"onMessage").addListener(d);Vg(a,"onDisconnect").addListener(function(g,h,k){return function(l){Vg(l,"onMessage").removeListener(h);dh.f(Tk,ah,k);return Bh(g)}}(c,d,e,b));a=ti(1);Xh(function(g,h,k,l,p){return function(){var n=function(){return function(r){return function(){function v(z){for(;;){a:try{for(;;){var H=r(z);
if(!Hd(H,ih)){var N=H;break a}}}catch(da){if(da instanceof Object)z[5]=da,si(z),N=ih;else throw da;}if(!Hd(N,ih))return N}}function q(){var z=[null,null,null,null,null,null,null,null,null,null,null];z[0]=t;z[1]=1;return z}var t=null;t=function(z){switch(arguments.length){case 0:return q.call(this);case 1:return v.call(this,z)}throw Error("Invalid arity: "+arguments.length);};t.w=q;t.a=v;return t}()}(function(r,v){return function(q){var t=q[1];if(7===t)return q[2]=q[2],q[1]=3,ih;if(1===t)return q[2]=
null,q[1]=2,ih;if(4===t)return t=q[2],q[7]=t,q[1]=y(t)?5:6,ih;if(15===t)return t=q[7],q[2]=t,q[1]=16,ih;if(13===t)return q[2]=q[2],q[1]=10,ih;if(6===t)return q[2]=null,q[1]=7,ih;if(17===t){var z=q[8];t=q[9];var H=Ab(Uk);t=qc.b(H,z).postMessage(t);q[10]=t;q[2]=null;q[1]=2;return ih}return 3===t?ri(q,q[2]):12===t?(q[2]=!1,q[1]=13,ih):2===t?qi(q,4,v):19===t?(q[2]=q[2],q[1]=7,ih):11===t?(q[2]=!0,q[1]=13,ih):9===t?(q[2]=!1,q[1]=10,ih):5===t?(t=q[7],q[1]=Wg(null==t)?8:9,ih):14===t?(t=q[7],t=$d(bh,t),q[2]=
t,q[1]=16,ih):16===t?(t=q[2],z=qc.b(t,Pk),t=qc.b(t,Qk),H=Ab(Uk),H=rd(H,z),q[8]=z,q[9]=t,q[1]=H?17:18,ih):10===t?(q[1]=y(q[2])?14:15,ih):18===t?(q[2]=null,q[1]=2,ih):8===t?(t=q[7],z=x===t.Hb,q[1]=y(t.j&64||z)?11:12,ih):null}}(g,h,k,l,p),g,h,k,l,p)}(),m=function(){var r=n.w?n.w():n.call(null);r[6]=g;return r}();return pi(m)}}(a,c,d,e,b));return a;case "fulcro-inspect-devtool":return d=Nk(Vk,a),Vg(a,"onMessage").addListener(d),Vg(a,"onDisconnect").addListener(function(g,h){return function(k){Vg(k,"onMessage").removeListener(g);
var l=J(Ok(function(){return function(p){var n=bd(p,0,null);p=bd(p,1,null);return vc.b(p,k)?n:null}}(g,h),Ab(Uk)));return y(l)?dh.f(Uk,ah,l):null}}(d,b));default:return console.log("Ignoring connection",Vg(a,"name"))}});
Try right clicking directly on the word "Revision" where you see "Revision nil". A pop-up should appear.
Also, remember to edit the Chrome developer tool settings. You need to check both:
• Under "Console": "Enable Custom Formatters" • Under "Network": "Disable Cache (while devtools is open)"
@tony.kay Pathom 3 is a rewrite; very different from Pathom 2 but has its virtues. What are your views on Pathom 3 and how it relates to Fulcro's development going forward? Do you see Pathom 3 as a good fit for Fulcro 3 (especially RAD since it leverages Pathom 2 extensively)? Thank you very much.
Well, since P3 is really a rewrite in order to make the connect approach more primary and also speed the whole thing up, I don’t see why we wouldn’t try to move to it. That said, I am concerned about the transition since it will almost certainly require hand-porting application code as well as libraries. I’m hoping a compatibility layer appears that minimizes that to primarily the pathom plugins. We’ll see.
Hi Henry, Thank you for your help. I do have custom formatters enabled
and also cache
is disabled
. This happens both on my windows
desktop and linux
laptop. I also don't see any popup when I right click on the "`Revision nil`" under Fulcro inspect.
I only get the chrome menu.