Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Stephan Hoyer
    @StephanHoyer
    5. I thought about a simple vdom2html converter that doesn't have component support, that might be enought for the mentioned usecase
    Feel free to try some things
    Greatly appreciate your efforts
    Cory Mawhorter
    @cmawhorter

    it might be worthwhile to mention in the readme. it seems browserMock can break the node stripe lib; maybe others. seems to be promise related.

    i didn't investigate too deeply, but stripe promises no longer return after using mithril node render (and browserMock)

    Stephan Hoyer
    @StephanHoyer
    that's odd
    Nguyễn Quang Huy
    @huystart17
    @StephanHoyer Hi, i am trying mithril node-render

    @huystart17
    i find that ok

    const LayoutOneColumn = {
        oninit: v => {
            v.state.text = s('Hello');
            console.log(v.children);
        },
        view: v => m('.container', m(TopBar), m(Header), m('div', v.state.text), v.children),
    };

    that got error

    const LayoutOneColumn = {
        oninit: v => {
            v.state.text = s('Hello');
            console.log(v.children);
        },
        view: v => m('.container', [m(TopBar), m(Header), m('div', v.state.text, v.children)]),
    };

    may be it not understand nest children

    and i got error when i trying nest v.children, like above
    v.children ===[ { tag: '#',
        key: undefined,
        attrs: undefined,
        children: '',
        text: undefined,
        dom: undefined,
        domSize: undefined,
        state: undefined,
        _state: undefined,
        events: undefined,
        instance: undefined,
        skip: false } ]
    error:  TypeError: Cannot read property 'toLowerCase' of undefined
        at _render (/home/huyhuy17-site/WORK/uApp/node_modules/mithril-node-render/index.js:204:66)
        at _render.next (<anonymous>)
        at onFulfilled (/home/huyhuy17-site/WORK/uApp/node_modules/co/index.js:65:19)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:182:7)
    and i trace it, can you help me
    Please help me . thank
    Stephan Hoyer
    @StephanHoyer
    what is s(...)
    and what is TopBar and Header
    Nguyễn Quang Huy
    @huystart17
    s = require('mithril-stream')
    TopBar and Header are just view component (but i has remove its code ).
    But when i try , i found that v.children inside some nest component , i got error
    Nguyễn Quang Huy
    @huystart17
    Thank you , i think it is my problem , when using mithril-stream, and i already solve it
    Stephan Hoyer
    @StephanHoyer
    :thumbsup:
    Alfeardo
    @alfeardo
    hi all
    Stephan Hoyer
    @StephanHoyer
    👋
    Samuel
    @SamuelBambu
    Hey, a little question i want to autofocus an input on render? how can i aproach this?
    Stephan Hoyer
    @StephanHoyer
    see mithril chat
    mmuratori
    @mmuratori
    Hi! Anyone can help me?
    I'm getting this while I'm trying to render a closure component view.tag.toLowerCase is not a function
    Stephan Hoyer
    @StephanHoyer
    Code?
    gaber mowiena
    @GaberMowiena
    Hi Mithrilers! im new to mithril, and i was following the tutorial to learn about the XHR and when i make a PUT request to the mock API "REM" it gives me an error in the console as 400 bad request and another error "request.js?d40f:130 Uncaught (in promise) Error: [object Object]
    at XMLHttpRequest.xhr.onreadystatechange ". I thought maybe REM is old and doesnt work so i tried the same url in postman but it worked. any thoughts on that?!
    Stephan Hoyer
    @StephanHoyer
    Please ask in the main mithril channel
    gaber mowiena
    @GaberMowiena
    Ok thank
    Jim Hessin
    @jhessin
    Is there any plans for typescript support for this project?
    Stephan Hoyer
    @StephanHoyer
    Feel free to add some annotations. Shouldn't be too hard.