•  
      request #31165 Extract Vue strictInject pattern in a re-usable library
    Infos
    #31165
    Thomas Gerbet (tgerbet)
    2023-03-20 17:49
    2023-03-17 10:05
    32752
    Details
    Extract Vue strictInject pattern in a re-usable library

    Vue has a inject function returning either T or undefined. An internal function strictInject was added a while ago returning only T and throwing an error when the value does not exist in order to indicate an issue likely caused by the developer.

    This implementation exists 3 times in the codebase (with and without tests), we need to stop spreading new implementations.

    Other
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2023-03-20
    Attachments
    Empty
    References

    Follow-ups